diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-03-10 20:02:44 -0300 |
---|---|---|
committer | Victor Shyba <victor.shyba@gmail.com> | 2015-03-10 20:02:57 -0300 |
commit | b2ad132138071b611c66bb37b918d8f345eacc68 (patch) | |
tree | 683f8cbdf443af02d78565b6fe6eaef4d9f96650 /service/pixelated | |
parent | b27d525efcb8b48157c3659ef98109261841aa91 (diff) |
for #315, verify phash. Need more defensive coding here
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/adapter/soledad/soledad_facade_mixin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/adapter/soledad/soledad_facade_mixin.py b/service/pixelated/adapter/soledad/soledad_facade_mixin.py index 1df038ea..046d6bf7 100644 --- a/service/pixelated/adapter/soledad/soledad_facade_mixin.py +++ b/service/pixelated/adapter/soledad/soledad_facade_mixin.py @@ -24,7 +24,7 @@ class SoledadDbFacadeMixin(object): return self.soledad.get_from_index('by-type-and-mbox', 'flags', mbox) def get_content_by_phash(self, phash): - content = self.soledad.get_from_index('by-type-and-payloadhash', 'cnt', phash) + content = self.soledad.get_from_index('by-type-and-payloadhash', 'cnt', phash) if phash else [] if len(content): return content[0] |