mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-10 08:37:19 +01:00
localization for websockets
This commit is contained in:
parent
94be8781e9
commit
2faa425caf
5 changed files with 154 additions and 78 deletions
|
|
@ -273,6 +273,11 @@ class DocumentParser(LoggingMixin):
|
|||
self.date = None
|
||||
self.progress_callback = progress_callback
|
||||
|
||||
def progress(self, current, max):
|
||||
print(self.progress_callback)
|
||||
if self.progress_callback:
|
||||
self.progress_callback(current, max)
|
||||
|
||||
def extract_metadata(self, document_path, mime_type):
|
||||
return []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue