forked from expo/troggle
Made JSON visible on wallet edit page
This commit is contained in:
@@ -632,8 +632,11 @@ def walletedit(request, path=None):
|
||||
# print(f'! - FORM walletedit - jsonfile {jsonfile}')
|
||||
if not Path(jsonfile).is_file():
|
||||
metadataurl = ""
|
||||
metadata =""
|
||||
else:
|
||||
metadataurl = Path("/dwgdataraw", "walletjson") / wallet[0:4] / wallet.replace("#", ":") / "contents.json"
|
||||
with open(jsonfile, 'r') as f:
|
||||
metadata = f.read()
|
||||
psg = ""
|
||||
freetext = ""
|
||||
chkplannr = ""
|
||||
@@ -826,6 +829,7 @@ def walletedit(request, path=None):
|
||||
"svxothers": svxothers,
|
||||
"create": create,
|
||||
"metadataurl": metadataurl,
|
||||
"metadata": metadata,
|
||||
"complaints": complaints,
|
||||
"caveobject": caveobject,
|
||||
"people": waldata["people"],
|
||||
|
||||
Reference in New Issue
Block a user