mirror of
https://github.com/adulau/hashlookup-server.git
synced 2024-12-09 18:37:23 +00:00
fix: [dns] records are now too large for single hashlookup record
reduce to some fields and the HTTP interface the fall-back to get more info
This commit is contained in:
parent
d6fe136421
commit
7c174204f7
1 changed files with 5 additions and 2 deletions
|
@ -40,8 +40,11 @@ def wildcard_hashlookup(query):
|
|||
return Response()
|
||||
if not rdb.exists("h:{}".format(sha1.upper())):
|
||||
return Response()
|
||||
|
||||
h = rdb.hgetall("h:{}".format(sha1))
|
||||
h = {}
|
||||
h['SHA-1'] = rdb.hget("h:{}".format(sha1), 'SHA-1')
|
||||
h['MD5'] = rdb.hget("h:{}".format(sha1), 'MD5')
|
||||
h['FileName'] = rdb.hget("h:{}".format(sha1), 'FileName')
|
||||
print(h)
|
||||
#if "OpSystemCode" in h:
|
||||
# if rdb.exists("h-OpSystemCode:{}".format(h['OpSystemCode'])):
|
||||
# h['OpSystemCode'] = rdb.hgetall("h-OpSystemCode:{}".format(h['OpSystemCode']))
|
||||
|
|
Loading…
Reference in a new issue