server/tools: fix swapping imported tag relations
This commit is contained in:
parent
a668d3ef34
commit
ec1fccf17e
|
@ -147,11 +147,11 @@ def import_tag_relations(unused_tag_ids, v1_session, v2_session):
|
||||||
continue
|
continue
|
||||||
if row['type'] == 1:
|
if row['type'] == 1:
|
||||||
v2_session.add(
|
v2_session.add(
|
||||||
db.TagSuggestion(
|
db.TagImplication(
|
||||||
parent_id=row['tag1id'], child_id=row['tag2id']))
|
parent_id=row['tag1id'], child_id=row['tag2id']))
|
||||||
else:
|
else:
|
||||||
v2_session.add(
|
v2_session.add(
|
||||||
db.TagImplication(
|
db.TagSuggestion(
|
||||||
parent_id=row['tag1id'], child_id=row['tag2id']))
|
parent_id=row['tag1id'], child_id=row['tag2id']))
|
||||||
v2_session.commit()
|
v2_session.commit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue