From 15e6f461d45515762285c1516e4bbbac8c187709 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sat, 11 Sep 2021 00:02:34 +0200 Subject: [PATCH] fix: [api/stats] existing hash value from nx removed --- bin/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/server.py b/bin/server.py index 5d93abb..a3d91d4 100644 --- a/bin/server.py +++ b/bin/server.py @@ -285,7 +285,7 @@ class stattop(Resource): ret = {} ret['nx'] = rdb.zrevrange("s:nx:sha1", 0, 100, withscores=True) for val in ret['nx']: - if rdb.exists("h:".format(val)): + if rdb.exists("h:{}".format(val[0])): ret['nx'].remove(val) exist = rdb.zrevrange("s:exist:sha1", 0, 100, withscores=True) ret['exist'] = []