remotes/1693045480750635534/spooky-22
Aevann1 2021-09-02 15:20:19 +02:00
parent 2bbc7e1468
commit 0bd32529bd
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ def random_post(v):
total = x.count()
n = random.randint(0, total - 1)
post = x.order_by(Submission.id.asc()).offset(n).limit(1).first()
post = x.offset(n).limit(1).first()
return redirect(post.permalink)
@cache.memoize(timeout=86400)