fix duplicate

pull/206/head
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
1 changed files with 1 additions and 1 deletions

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