code cleanup

This commit is contained in:
Jonas Winkler
2020-11-21 15:34:00 +01:00
parent afc3753e58
commit a532200d10
6 changed files with 71 additions and 49 deletions

View File

@@ -283,8 +283,8 @@ class MailAccountHandler(LoggingMixin):
path=temp_filename,
override_filename=att.filename,
override_title=title,
override_correspondent_id=correspondent.id if correspondent else None,
override_document_type_id=doc_type.id if doc_type else None,
override_correspondent_id=correspondent.id if correspondent else None, # NOQA: E501
override_document_type_id=doc_type.id if doc_type else None, # NOQA: E501
override_tag_ids=[tag.id] if tag else None,
task_name=f"Mail: {att.filename}"
)