mirror of
https://github.com/adulau/hashlookup-server.git
synced 2024-11-27 20:47:09 +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))
|
p = rdb.smembers("p:{}".format(k))
|
||||||
else:
|
else:
|
||||||
p = []
|
p = []
|
||||||
p = rdb.srandmember("p:{}".format(sha1), number=10)
|
p = rdb.srandmember("p:{}".format(k), number=10)
|
||||||
for parent in p:
|
for parent in p:
|
||||||
parent_details = rdb.hgetall("h:{}".format(parent))
|
parent_details = rdb.hgetall("h:{}".format(parent))
|
||||||
parents.append(parent_details)
|
parents.append(parent_details)
|
||||||
|
|
Loading…
Reference in a new issue