mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-01 01:46:16 +00:00
Upgrades black to v23, upgrades ruff
This commit is contained in:
@@ -60,7 +60,6 @@ MESSAGE_FINISHED = "finished"
|
||||
|
||||
|
||||
class Consumer(LoggingMixin):
|
||||
|
||||
logging_name = "paperless.consumer"
|
||||
|
||||
def _send_progress(
|
||||
@@ -426,7 +425,6 @@ class Consumer(LoggingMixin):
|
||||
# in the system. This will be a transaction and reasonably fast.
|
||||
try:
|
||||
with transaction.atomic():
|
||||
|
||||
# store the document.
|
||||
document = self._store(text=text, date=date, mime_type=mime_type)
|
||||
|
||||
@@ -520,7 +518,6 @@ class Consumer(LoggingMixin):
|
||||
date: Optional[datetime.datetime],
|
||||
mime_type: str,
|
||||
) -> Document:
|
||||
|
||||
# If someone gave us the original filename, use it instead of doc.
|
||||
|
||||
file_info = FileInfo.from_filename(self.filename)
|
||||
|
Reference in New Issue
Block a user