Skip to content
Snippets Groups Projects
Commit 9aa49573 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

Refactor following storage's api backend change

parent b38c6a94
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ def lookup_hash(q):
"""
hash = query.categorize_hash(q)
if hash != {}:
present = main.storage().content_find(hash)
present = main.storage().content_exist(hash)
return 'Found!' if present else 'Not Found'
return """This is not a hash.
Hint: hexadecimal string with length either 20 (sha1) or 32 (sha256)."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment