From dae39ef8ae4ab731af4aec770fdd9af633f8fdd3 Mon Sep 17 00:00:00 2001 From: Robert Putt Date: Fri, 15 Dec 2017 13:45:26 +0000 Subject: [PATCH] Fix lookup recording of files found with hashes other than sha512. Change-Id: Id7f01519b358b00c7eb689a476cc6c97d56443f4 --- python_nemesis/api/v1/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_nemesis/api/v1/__init__.py b/python_nemesis/api/v1/__init__.py index e40c8db..bacd1d4 100644 --- a/python_nemesis/api/v1/__init__.py +++ b/python_nemesis/api/v1/__init__.py @@ -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: