mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 09:37:04 +01:00
fixes #689
This commit is contained in:
parent
ede498fa52
commit
12235cc853
1 changed files with 4 additions and 3 deletions
|
|
@ -123,10 +123,11 @@ class DocumentClassifier(object):
|
||||||
m.update(y.to_bytes(4, 'little', signed=True))
|
m.update(y.to_bytes(4, 'little', signed=True))
|
||||||
labels_correspondent.append(y)
|
labels_correspondent.append(y)
|
||||||
|
|
||||||
tags = [tag.pk for tag in doc.tags.filter(
|
tags = sorted([tag.pk for tag in doc.tags.filter(
|
||||||
matching_algorithm=MatchingModel.MATCH_AUTO
|
matching_algorithm=MatchingModel.MATCH_AUTO
|
||||||
)]
|
)])
|
||||||
m.update(bytearray(tags))
|
for tag in tags:
|
||||||
|
m.update(tag.to_bytes(4, 'little', signed=True))
|
||||||
labels_tags.append(tags)
|
labels_tags.append(tags)
|
||||||
|
|
||||||
if not data:
|
if not data:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue