fix last commit
parent
7784e6762e
commit
f87e6a48e1
|
@ -24,7 +24,7 @@ from files.__main__ import app, cache, limiter
|
|||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
|
||||
def rdrama(id, path):
|
||||
id = ''.join(f'{x}/' for x in id)
|
||||
title = path.rsplit("/", 1)[0].replace('/', '')
|
||||
title = path.split("/")[0]
|
||||
return redirect(f'/archives/drama/comments/{id}{title}.html')
|
||||
|
||||
@app.get("/r/<subreddit>")
|
||||
|
|
Loading…
Reference in New Issue