paperless-ngx/src/documents
Erik Arvstedt 61cd050e24 Ensure docs have been unmodified for some time before consuming
Previously, the second mtime check for new files usually happened right
after the first one, which could have caused consumption of docs that
were still being modified.

We're now waiting for at least FILES_MIN_UNMODIFIED_DURATION (0.5s).

This also cleans up the logic by eliminating the consumer.stats attribute
and the weird double call to consumer.run().

Additionally, this a fixes memory leak in consumer.stats where paths could be
added but never removed if the corresponding files disappeared from
the consumer dir before being considered ready.
2018-05-11 14:05:29 +02:00
..
management Ensure docs have been unmodified for some time before consuming 2018-05-11 14:05:29 +02:00
migrations Fix LogEntry user when PAPERLESS_DISABLE_LOGIN is set to true 2018-04-17 21:03:18 +02:00
signals Fix LogEntry user when PAPERLESS_DISABLE_LOGIN is set to true 2018-04-17 21:03:18 +02:00
static feat: add the new reminders app 2017-03-25 16:21:46 +00:00
templates Change date fields to actual date fields #278 2018-01-06 19:21:49 +00:00
templatetags Add a smarter work-around for the change-list-results hack 2018-01-06 18:47:01 +00:00
tests Clean up test formatting a bit 2018-04-22 16:28:21 +01:00
__init__.py It works! 2015-12-20 19:23:33 +00:00
admin.py Remove the hard-coding of the thumbnail URL 2018-04-13 20:18:16 +01:00
apps.py Add LogEntry after document consumption 2018-03-11 17:09:43 +01:00
consumer.py Ensure docs have been unmodified for some time before consuming 2018-05-11 14:05:29 +02:00
filters.py refactor: code cleanup 2017-03-25 16:20:59 +00:00
forms.py Configuration cli argument for document_consumer 2018-03-03 18:43:20 +00:00
loggers.py Removed log components and introduced signals for tags & correspondents 2016-03-28 11:11:15 +01:00
mail.py Fix list out of bounds error in mail message parsing 2018-05-11 14:04:36 +02:00
managers.py Fixes #213 (MySQL syntax error) 2017-04-19 11:30:12 +02:00
mixins.py refactor: break document-only stuff into the paperless app 2017-03-25 16:18:34 +00:00
models.py Remove old Python style 2018-04-22 16:28:03 +01:00
parsers.py Use paperless- instead of paperless for tempdir name 2018-02-03 14:49:17 +00:00
serialisers.py fix: #200 allow edits of correspondent & tags 2017-03-25 15:01:01 +00:00
settings.py PEP8 2017-05-08 15:48:37 +02:00
views.py Remove superfluous code 2018-02-04 13:27:26 +00:00