Fix lookup recording of files found with hashes other than sha512.

Change-Id: Id7f01519b358b00c7eb689a476cc6c97d56443f4
This commit is contained in:
Robert Putt 2017-12-15 13:45:26 +00:00
parent ee5d80430b
commit dae39ef8ae
1 changed files with 1 additions and 1 deletions

View File

@ -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: