This commit is contained in:
2022-09-07 19:30:06 +03:00
parent e38d478ef2
commit bae0be1c7d
3 changed files with 10 additions and 9 deletions

View File

@@ -57,7 +57,7 @@ async def migrate(entry, storage):
if entry.get("createdAt"):
reaction_dict["createdAt"] = date_parse(entry.get("createdAt"))
shout_oid = entry.get("contentItem")
if not shout_oid in storage["shouts"]["by_oid"]:
if shout_oid not in storage["shouts"]["by_oid"]:
if len(storage["shouts"]["by_oid"]) > 0:
return shout_oid
else: