Small user message for why classifier didn't train again

This commit is contained in:
Trenton H 2024-01-15 10:19:26 -08:00
parent 15f7c93158
commit cdf5d9910e

View File

@ -207,6 +207,7 @@ class DocumentClassifier:
self.last_doc_change_time is not None self.last_doc_change_time is not None
and self.last_doc_change_time >= latest_doc_change and self.last_doc_change_time >= latest_doc_change
) and self.last_auto_type_hash == hasher.digest(): ) and self.last_auto_type_hash == hasher.digest():
logger.info("No updates since last training")
return False return False
# subtract 1 since -1 (null) is also part of the classes. # subtract 1 since -1 (null) is also part of the classes.