captsa add alert
This commit is contained in:
4
app.py
4
app.py
@@ -4,6 +4,9 @@ from db import init_db
|
||||
from routes.api import api
|
||||
from routes.dashboard import dashboard
|
||||
|
||||
# Initialise DB schema (e.g. creating newly added tables) when the app starts
|
||||
init_db()
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
CORS(app, resources={r"/*": {"origins": "*"}}, supports_credentials=False)
|
||||
@@ -27,6 +30,5 @@ app.register_blueprint(api)
|
||||
app.register_blueprint(dashboard)
|
||||
|
||||
if __name__ == '__main__':
|
||||
init_db()
|
||||
print("✅ Grepolis Remote — DB initialised")
|
||||
app.run(host='0.0.0.0', port=5050, debug=True)
|
||||
Reference in New Issue
Block a user