A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Consume documents in order of increasing mtime
Erik Arvstedt2fe7df8ca061
diff --git a/src/documents/consumer.py b/src/documents/consumer.pyindex fc8635c95..3d7cc7bd1 100644--- a/src/documents/consumer.py+++ b/src/documents/consumer.py@@ -71,8 +71,11 @@ class Consumer:})def run(self):+ docs = [os.path.join(self.consume, entry)+ for entry in os.listdir(self.consume)]+ docs_old_to_new = sorted(docs, key=lambda doc: os.path.getmtime(doc))- for doc in os.listdir(self.consume):+ for doc in docs_old_to_new:doc = os.path.join(self.consume, doc)