Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
ialbert committed Mar 31, 2021
1 parent be55cc3 commit f3eebc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biostar/forum/management/commands/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def bump(uids, **kwargs):
Set post rank the current timestamp
"""

top = Post.objects.filter(status=Post.OPEN, is_toplevel=True).order_by("-rank")[3:13]
top = Post.objects.filter(status=Post.OPEN, is_toplevel=True).order_by("-rank")[2:6]

top = random.choice(list(top))
rank = top.rank
Expand Down

0 comments on commit f3eebc2

Please sign in to comment.