strip-more
All checks were successful
Deploy on push / deploy (push) Successful in 1m8s

This commit is contained in:
2024-06-05 23:03:13 +03:00
parent b72ef072e4
commit 12439b6ef2
2 changed files with 3 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ async def precache_data():
for author in authors:
profile = author.dict() if not isinstance(author, dict) else author
author_id = profile.get("id")
user_id = profile.get("user")
user_id = profile.get("user","").strip()
if author_id and user_id:
authors_by_id[author_id] = profile
author_payload = json.dumps(profile, cls=CustomJSONEncoder)