mirror of
https://github.com/adulau/hashlookup-server.git
synced 2024-11-21 17:47:06 +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']))
|
h['ProductCode'] = rdb.hgetall("h-ProductCode:{}".format(h['ProductCode']))
|
||||||
if rdb.exists("p:{}".format(k)):
|
if rdb.exists("p:{}".format(k)):
|
||||||
parents = []
|
parents = []
|
||||||
for parent in rdb.smembers("p:{}".format(sha1)):
|
for parent in rdb.smembers("p:{}".format(k)):
|
||||||
parent_details = rdb.hgetall("h:{}".format(parent))
|
parent_details = rdb.hgetall("h:{}".format(parent))
|
||||||
parents.append(parent_details)
|
parents.append(parent_details)
|
||||||
h['parents'] = parents
|
h['parents'] = parents
|
||||||
|
|
||||||
return h
|
return h
|
||||||
|
|
||||||
@api.route('/info')
|
@api.route('/info')
|
||||||
|
|
Loading…
Reference in a new issue