mirror of https://github.com/CIRCL/AIL-framework
Fix: as JSON decode needs a string, the empty list is a string.
parent
7d4d2e223a
commit
eb14005fcf
|
@ -264,7 +264,7 @@ class Paste(object):
|
|||
|
||||
def _get_p_duplicate(self):
|
||||
self.p_duplicate = self.store.hget(self.p_path, "p_duplicate")
|
||||
return self.p_duplicate if self.p_duplicate is not None else []
|
||||
return self.p_duplicate if self.p_duplicate is not None else '[]'
|
||||
|
||||
def save_all_attributes_redis(self, key=None):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue