Slight reformatting
This commit is contained in:
@ -9,12 +9,12 @@ if not ENABLE_TIMING:
|
|||||||
print("- Disabled timing constraints")
|
print("- Disabled timing constraints")
|
||||||
|
|
||||||
app: Flask = Flask(__name__)
|
app: Flask = Flask(__name__)
|
||||||
app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///formula10.db"
|
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///formula10.db"
|
||||||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
|
||||||
|
|
||||||
# Session cookie is used to propagate message to error page
|
# Session cookie is used to propagate message to error page
|
||||||
app.config['SESSION_TYPE'] = 'memcached'
|
app.config["SESSION_TYPE"] = "memcached"
|
||||||
app.config['SECRET_KEY'] = 'ich stinke nach maggi'
|
app.config["SECRET_KEY"] = "ich stinke nach maggi"
|
||||||
|
|
||||||
app.url_map.strict_slashes = False
|
app.url_map.strict_slashes = False
|
||||||
|
|
||||||
|
@ -20,6 +20,8 @@ class ApiSession():
|
|||||||
"year": int
|
"year": int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def __init__(self, response: dict[str, str] | None):
|
def __init__(self, response: dict[str, str] | None):
|
||||||
if response is None:
|
if response is None:
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user