update schema, add db init

This commit is contained in:
2026-08-24 13:35:59 +02:00
parent 442df674ba
commit 0b262c83ab
2 changed files with 24 additions and 22 deletions
+3 -1
View File
@@ -73,10 +73,12 @@ def update_addr():
return jsonify({"status": "500", "code": "internal-server-error", "comment": "An error occurred while processing request"}), 500
return jsonify({"status": "200", "code": "ok", "comment": "Updated successfully"})
except:
except Exception as e:
print(e, flush=True)
return jsonify({"status": "500", "code": "internal-server-error", "comment": "An error occurred while processing request"}), 500
if __name__ == '__main__':
auth.init_db(DB_PATH)
app.run(host="0.0.0.0", port=8080, debug=True)