mirror of
https://github.com/adulau/hashlookup-server.git
synced 2024-12-05 00:17:16 +00:00
fix: [api/lookup/sha1] missing parents bug
This commit is contained in:
parent
c470201fd8
commit
6461b91d55
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ class lookup(Resource):
|
|||
p = rdb.smembers("p:{}".format(k))
|
||||
else:
|
||||
p = []
|
||||
p = rdb.srandmember("p:{}".format(sha1), number=10)
|
||||
p = rdb.srandmember("p:{}".format(k), number=10)
|
||||
for parent in p:
|
||||
parent_details = rdb.hgetall("h:{}".format(parent))
|
||||
parents.append(parent_details)
|
||||
|
|
Loading…
Reference in a new issue