Fixed issue in Orborus where it doesn't use Memcached properly yet
This commit is contained in:
@@ -138,6 +138,15 @@ def escape(a):
|
||||
a = str(a)
|
||||
return json_escape(a)
|
||||
|
||||
@shuffle_filters.register
|
||||
def neat_json(a):
|
||||
try:
|
||||
a = json.loads(a)
|
||||
except:
|
||||
pass
|
||||
|
||||
return json.dumps(a, indent=4, sort_keys=True)
|
||||
|
||||
@shuffle_filters.register
|
||||
def flatten(a):
|
||||
a = list(a)
|
||||
|
||||
Reference in New Issue
Block a user