Commit 5f14abbe authored by Raul Sirel's avatar Raul Sirel
Browse files

subset fix

parent 2710adf2
\ No newline at end of file
\ No newline at end of file
......@@ -40,7 +40,7 @@ class Documents:
for tag in tags:
if tag in self.taggers:
tagger = self.taggers[tag]
if set(tagger.fields) == document_fields:
if set(tagger.fields).issubset(set(document_fields)):
tag_to_add = tag_template.copy()
tag_to_add['str_val'] = tagger.tag_name
tag_to_add['doc_path'] = sorted(tagger.fields)[0]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment