mirror of
https://github.com/adulau/hashlookup-server.git
synced 2024-11-21 17:47:06 +00:00
Merge branch 'main' of github.com:adulau/hashlookup-server into main
This commit is contained in:
commit
b4c539114f
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ class stattop(Resource):
|
||||||
ret = {}
|
ret = {}
|
||||||
ret['nx'] = rdb.zrevrange("s:nx:sha1", 0, 100, withscores=True)
|
ret['nx'] = rdb.zrevrange("s:nx:sha1", 0, 100, withscores=True)
|
||||||
for val in ret['nx']:
|
for val in ret['nx']:
|
||||||
if rdb.exists("h:".format(val)):
|
if rdb.exists("h:{}".format(val[0])):
|
||||||
ret['nx'].remove(val)
|
ret['nx'].remove(val)
|
||||||
exist = rdb.zrevrange("s:exist:sha1", 0, 100, withscores=True)
|
exist = rdb.zrevrange("s:exist:sha1", 0, 100, withscores=True)
|
||||||
ret['exist'] = []
|
ret['exist'] = []
|
||||||
|
|
Loading…
Reference in a new issue