fix: json type error stopped saving
All checks were successful
Build Docker / Build SLDs Image (push) Successful in 19s
Build Docker / Build Main Image (push) Successful in 20s

This commit is contained in:
Nathan Woodburn 2023-11-09 12:21:06 +11:00
parent d7d8a57e0f
commit 730c48dd2a
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -119,12 +119,15 @@ def send_edit():
resp.set_cookie('token', '', expires=0)
return resp
# Json data
data = {}
data['data'] = request.form['data']
data['HNS'] = request.form['hns']
data['BTC'] = request.form['btc']
data['ETH'] = request.form['eth']
# Convert to json
data = json.dumps(data)
db.update_website_data_raw(user['domain'],data)
return redirect('/edit')