fix main topic migration
This commit is contained in:
parent
26e903d4f2
commit
db40c2dd93
|
@ -94,7 +94,7 @@ def migrate(entry, users_by_oid, topics_by_oid):
|
|||
mainTopic = topics_by_oid.get(category)
|
||||
if mainTopic:
|
||||
r['mainTopic'] = mainTopic["slug"]
|
||||
topic_oids = set(category)
|
||||
topic_oids = set([category])
|
||||
topic_oids.update(entry.get("tags", []))
|
||||
for oid in topic_oids:
|
||||
if oid in topics_by_oid:
|
||||
|
|
Loading…
Reference in New Issue
Block a user