update schema, add db init
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user