mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-07 14:06:06 +01:00
code style
This commit is contained in:
parent
85f46424a8
commit
bdc247ce49
3 changed files with 5 additions and 6 deletions
|
|
@ -21,7 +21,7 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
|
||||
def _tags_from_path(filepath):
|
||||
"""Walk up the directory tree from filepath to CONSUMPTION_DIr
|
||||
"""Walk up the directory tree from filepath to CONSUMPTION_DIR
|
||||
and get or create Tag IDs for every directory.
|
||||
"""
|
||||
tag_ids = set()
|
||||
|
|
|
|||
|
|
@ -273,10 +273,9 @@ class DocumentParser(LoggingMixin):
|
|||
self.date = None
|
||||
self.progress_callback = progress_callback
|
||||
|
||||
def progress(self, current, max):
|
||||
print(self.progress_callback)
|
||||
def progress(self, current_progress, max_progress):
|
||||
if self.progress_callback:
|
||||
self.progress_callback(current, max)
|
||||
self.progress_callback(current_progress, max_progress)
|
||||
|
||||
def extract_metadata(self, document_path, mime_type):
|
||||
return []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue