mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-05 20:30:50 +08:00
BUG: address json initialized with array of 1 dict, instead of dict
This commit is contained in:
@@ -133,7 +133,8 @@ def get_user_pubaddr(environ=None):
|
||||
return [data, ]
|
||||
return data
|
||||
else:
|
||||
data = dict(pubAddr='', desc='')
|
||||
data = []
|
||||
data.append(dict(pubAddr='', desc=''))
|
||||
with open(filename, 'w') as f:
|
||||
json.dump(data, f, sort_keys=False, indent=2,
|
||||
separators=(',', ':'))
|
||||
|
||||
Reference in New Issue
Block a user