master
Aevann1 2021-09-21 23:52:24 +02:00
parent e2d67b0881
commit 535c3a75cd
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ db_session = scoped_session(sessionmaker(bind=engine, autoflush=False))
@app.before_request @app.before_request
def before_request(): def before_request():
#if request.content_length > 16 * 1024 * 1024: abort(413) if request.content_length > 16 * 1024 * 1024: abort(413)
if request.method.lower() != "get" and app.config["READ_ONLY"]: return {"error":f"{app.config['SITE_NAME']} is currently in read-only mode."}, 500 if request.method.lower() != "get" and app.config["READ_ONLY"]: return {"error":f"{app.config['SITE_NAME']} is currently in read-only mode."}, 500