Fix: as JSON decode needs a string, the empty list is a string.

This commit is contained in:
Alexandre Dulaunoy 2016-08-29 12:08:12 +00:00
parent 7d4d2e223a
commit eb14005fcf

View file

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