Skip to content

Commit

Permalink
hide hidden users from belts list
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Jan 25, 2024
1 parent a236a59 commit 04346b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dojo_plugin/utils/awards.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def get_belts():
result["ranks"][color] = []

for belt in Belts.query.filter_by(name=color).order_by(Belts.date):
if belt.user.hidden:
continue

result["dates"][color][belt.user.id] = str(belt.date)
result["users"][belt.user.id] = {
"handle": belt.user.name,
Expand Down

0 comments on commit 04346b4

Please sign in to comment.