remotes/1693045480750635534/spooky-22
parent
d75ff73ab3
commit
92ee10c672
|
@ -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…
Reference in New Issue