Dont modify the mtime, save it to a file

This commit is contained in:
shamoon
2025-02-03 00:18:12 -08:00
parent b735a0841c
commit da29be0596
2 changed files with 17 additions and 5 deletions

View File

@@ -2175,9 +2175,10 @@ class SystemStatusView(PassUserMixin):
classifier_status = "OK"
classifier_last_trained = (
make_aware(
datetime.fromtimestamp(settings.MODEL_FILE.stat().st_mtime),
datetime.fromtimestamp(classifier.get_last_checked()),
)
if settings.MODEL_FILE.exists()
and classifier.get_last_checked() is not None
else None
)
except Exception as e: