From 3958dd069a8df46d8c70f5edc5dca1ed48f47165 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 25 Apr 2023 14:47:27 +0200 Subject: [PATCH] give floattrip the comment dump so he can train his AI --- files/routes/static.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/files/routes/static.py b/files/routes/static.py index 98ae3197b..4d8b06faa 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -400,3 +400,13 @@ def transfers(v:User): def donate(v): if v.shadowbanned or v.agendaposter == 1: abort(404) return render_template(f'donate.html', v=v) + +@app.get('/floattrip.csv') +@limiter.limit(DEFAULT_RATELIMIT) +@is_not_permabanned +def floattrip(v): + if SITE != 'rdrama.net' or v.id not in (1, 4480): + abort(403) + + resp = make_response(send_file('/floattrip.csv')) + return resp