fix duplicate

This commit is contained in:
Terrtia 2018-05-31 09:01:47 +02:00
parent 8a87b7b082
commit 93dcdf4f23
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -340,7 +340,7 @@ class Paste(object):
Save a new duplicate on others pastes Save a new duplicate on others pastes
""" """
for hash_type, path, percent, date in list_value: for hash_type, path, percent, date in list_value:
to_add = [hash_type, self.p_path, percent, date] to_add = (hash_type, self.p_path, percent, date)
self.store_duplicate.sadd('dup:'+path,to_add) self.store_duplicate.sadd('dup:'+path,to_add)
def _get_from_redis(self, r_serv): def _get_from_redis(self, r_serv):