From 13e609bcf71fc1fd37dad376f70a8dc688dc351d Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 5 Jun 2024 22:20:39 +0300 Subject: [PATCH] fixed-redis-intfix4 --- services/precache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/precache.py b/services/precache.py index b6c9f27f..7fb5b91e 100644 --- a/services/precache.py +++ b/services/precache.py @@ -116,7 +116,7 @@ async def precache_data(): user_id = profile["user"] author_payload = json.dumps(profile, cls=CustomJSONEncoder) await redis.execute("SET", f"author:id:{author_id}", author_payload) - await redis.execute("SET", f"author:user:{user_id}", author_payload) + await redis.execute("SET", f"author:user:{user_id.strip()}", author_payload) logger.info(f"{len(authors)} authors precached") # followings for authors