mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 07:45:32 +01:00
fix pycodestyle
This commit is contained in:
parent
3d173a13ab
commit
aa6e96e54d
2 changed files with 11 additions and 7 deletions
|
|
@ -85,9 +85,9 @@ def modify_tags(doc_ids, add_tags, remove_tags):
|
|||
tag_id__in=remove_tags,
|
||||
).delete()
|
||||
|
||||
DocumentTagRelationship.objects.bulk_create([
|
||||
DocumentTagRelationship(
|
||||
document_id=doc, tag_id=tag) for (doc,tag) in itertools.product(affected_docs, add_tags)
|
||||
DocumentTagRelationship.objects.bulk_create([DocumentTagRelationship(
|
||||
document_id=doc, tag_id=tag) for (doc, tag) in itertools.product(
|
||||
affected_docs, add_tags)
|
||||
], ignore_conflicts=True)
|
||||
|
||||
async_task(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue