From 6264a07c494e71b558b75c196ddc51f279179de7 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Thu, 4 Apr 2024 21:38:26 +1300 Subject: [PATCH] track recent activities using redis instead of db --- app/activitypub/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/activitypub/routes.py b/app/activitypub/routes.py index 78ab4d05..7cad58e7 100644 --- a/app/activitypub/routes.py +++ b/app/activitypub/routes.py @@ -33,7 +33,7 @@ def testredis_get(): redis_client = get_redis_connection() redis_client.set("cowbell", "1", ex=600) x = redis_client.get('cowbell') - if x == '1': + if x is not None: return "Redis: OK" else: return "Redis: FAIL"