fd
This commit is contained in:
parent
c8ed392f92
commit
1f21df89e4
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue