forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-09-08 22:08:01 +02:00
parent d75ff73ab3
commit 92ee10c672
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -365,7 +365,7 @@ def u_username(username, v=None):
u = get_user(username, v=v)
if v and v == u: v.refresh_selfset_badges()
#if v and v == u: v.refresh_selfset_badges()
# check for wrong cases