fix: ignored tag

This commit is contained in:
283375 2023-09-23 22:55:43 +08:00
parent 212f44892b
commit 3193c88779
Signed by: 283375
SSH Key Fingerprint: SHA256:UcX0qg6ZOSDOeieKPGokA5h7soykG61nz2uxuQgVLSk

View File

@ -220,7 +220,7 @@ class Project:
list(self.redactSourcesYield())
def classify(self, sample: Path, tag: str):
if tag not in self.tags:
if tag != "ignored" and tag not in self.tags:
raise ValueError(f'Unknown tag "{tag}"')
with self.__sessionmaker() as session: