From 2eb2d6a0349d2467c41f05945953b2ca2b83e17e Mon Sep 17 00:00:00 2001 From: iro84657 Date: Mon, 9 May 2022 22:02:15 -0400 Subject: [PATCH] Remove references to r/Drama archives --- files/routes/static.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 82f9be052..f174e50c5 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -10,12 +10,6 @@ import matplotlib.pyplot as plt from files.classes.mod_logs import ACTIONTYPES, ACTIONTYPES2 from files.classes.badges import BadgeDef -@app.get("/r/drama/comments//") -@app.get("/r/Drama/comments/<id>/<title>") -def rdrama(id, title): - id = ''.join(f'{x}/' for x in id) - return redirect(f'/archives/drama/comments/{id}{title}.html') - @app.get('/logged_out/') @app.get('/logged_out/<path:old>') def logged_out(old = ""): @@ -340,16 +334,6 @@ def submit_contact(v): g.db.commit() return render_template("contact.html", v=v, msg="Your message has been sent.") -@app.get('/archives') -def archivesindex(): - return redirect("/archives/index.html") - -@app.get('/archives/<path:path>') -def archives(path): - resp = make_response(send_from_directory('/archives', path)) - if request.path.endswith('.css'): resp.headers.add("Content-Type", "text/css") - return resp - @app.get('/e/<emoji>') @limiter.exempt def emoji(emoji):