mirror of
https://github.com/283375/arcaea-offline-ocr-model.git
synced 2025-04-21 13:30:17 +00:00
fix: ignored
tag
This commit is contained in:
parent
212f44892b
commit
3193c88779
@ -220,7 +220,7 @@ class Project:
|
|||||||
list(self.redactSourcesYield())
|
list(self.redactSourcesYield())
|
||||||
|
|
||||||
def classify(self, sample: Path, tag: str):
|
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}"')
|
raise ValueError(f'Unknown tag "{tag}"')
|
||||||
|
|
||||||
with self.__sessionmaker() as session:
|
with self.__sessionmaker() as session:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user