mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-14 02:28:23 +00:00
Fix: as JSON decode needs a string, the empty list is a string.
This commit is contained in:
parent
7d4d2e223a
commit
eb14005fcf
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ class Paste(object):
|
||||||
|
|
||||||
def _get_p_duplicate(self):
|
def _get_p_duplicate(self):
|
||||||
self.p_duplicate = self.store.hget(self.p_path, "p_duplicate")
|
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):
|
def save_all_attributes_redis(self, key=None):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue