localization for websockets

This commit is contained in:
jonaswinkler
2021-01-28 22:06:02 +01:00
parent 94be8781e9
commit 2faa425caf
5 changed files with 154 additions and 78 deletions

View File

@@ -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 []