add debug mode var
This commit is contained in:
parent
32e0f50765
commit
922f07763a
@ -6,3 +6,5 @@ TOTP_SEED=
|
|||||||
#Cookie
|
#Cookie
|
||||||
QL_0=
|
QL_0=
|
||||||
IBSID=
|
IBSID=
|
||||||
|
|
||||||
|
APP_DEBUG=true
|
||||||
|
5
api.py
5
api.py
@ -2,6 +2,8 @@ from flask import Flask, request, jsonify
|
|||||||
import subprocess
|
import subprocess
|
||||||
import json
|
import json
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
import os
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
@ -70,4 +72,5 @@ def verify_payment():
|
|||||||
return jsonify({"success": False, "message": "Transaction not found, contact support"})
|
return jsonify({"success": False, "message": "Transaction not found, contact support"})
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(debug=True)
|
debug_mode = os.getenv('APP_DEBUG', 'False').lower() in ('true', '1', 't')
|
||||||
|
app.run(debug=debug_mode)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user