mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 07:45:32 +01:00
Upgrades black to v23, upgrades ruff
This commit is contained in:
parent
3bcbd05252
commit
6f163111ce
147 changed files with 74 additions and 387 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue