mirror of
https://github.com/adulau/hashlookup-server.git
synced 2024-11-23 18:47:11 +00:00
chg: [stats/top] remove recently added hashes from previously nx hash
This commit is contained in:
parent
6461b91d55
commit
aa58ad8152
1 changed files with 3 additions and 0 deletions
|
@ -287,6 +287,9 @@ class stattop(Resource):
|
|||
return {'message': 'Public statistics not enabled'}, 400
|
||||
ret = {}
|
||||
ret['nx'] = rdb.zrevrange("s:nx:sha1", 0, 100, withscores=True)
|
||||
for val in ret['nx']:
|
||||
if rdb.exists("h:".format(val)):
|
||||
ret['nx'].remove(val)
|
||||
exist = rdb.zrevrange("s:exist:sha1", 0, 100, withscores=True)
|
||||
ret['exist'] = []
|
||||
for value in exist:
|
||||
|
|
Loading…
Reference in a new issue