mirror of
https://github.com/adulau/hashlookup-server.git
synced 2024-12-09 18:37:23 +00:00
fix: [api] typo fixed
This commit is contained in:
parent
a17cd38595
commit
02a675d9ea
1 changed files with 1 additions and 2 deletions
|
@ -140,11 +140,10 @@ class lookup(Resource):
|
|||
h['ProductCode'] = rdb.hgetall("h-ProductCode:{}".format(h['ProductCode']))
|
||||
if rdb.exists("p:{}".format(k)):
|
||||
parents = []
|
||||
for parent in rdb.smembers("p:{}".format(sha1)):
|
||||
for parent in rdb.smembers("p:{}".format(k)):
|
||||
parent_details = rdb.hgetall("h:{}".format(parent))
|
||||
parents.append(parent_details)
|
||||
h['parents'] = parents
|
||||
|
||||
return h
|
||||
|
||||
@api.route('/info')
|
||||
|
|
Loading…
Reference in a new issue