This commit is contained in:
Aevann1 2022-01-02 02:06:46 +02:00
parent 123cc81604
commit d456aaa0c7
18 changed files with 119 additions and 119 deletions

View file

@ -389,7 +389,7 @@ def random_post(v):
total = x.count()
n = random.randint(1, total - 2)
post = x.offset(n).limit(1).first()
post = x.offset(n).limit(1).one_or_none()
return redirect(f"/post/{post.id}")
@cache.memoize(timeout=86400)