Fix lookup recording of files found with hashes other than sha512.
Change-Id: Id7f01519b358b00c7eb689a476cc6c97d56443f4
This commit is contained in:
parent
ee5d80430b
commit
dae39ef8ae
|
@ -59,7 +59,7 @@ def lookup_hash(req_hash):
|
|||
raise NotFoundException("Unable to find file with hash %s." % req_hash)
|
||||
|
||||
elif len(result) == 1:
|
||||
file = get_file_by_sha512_hash(req_hash)
|
||||
file = get_file_by_sha512_hash(result[0]['sha512'])
|
||||
add_request(req_hash, 'found', file_id=file.file_id)
|
||||
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue