From 730c48dd2a4b26c3fa9c07096c02840ff1730940 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 9 Nov 2023 12:21:06 +1100 Subject: [PATCH] fix: json type error stopped saving --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 9d9ee5c..b976c6d 100644 --- a/main.py +++ b/main.py @@ -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')