This commit is contained in:
Aevann1 2021-09-21 23:54:44 +02:00
parent 5cf212d359
commit 25f7c20a5e
5 changed files with 9 additions and 2 deletions

View file

@ -84,8 +84,6 @@ db_session = scoped_session(sessionmaker(bind=engine, autoflush=False))
@app.before_request
def before_request():
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