Skip to content

Commit

Permalink
fix on_hold for telegram bot (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
parhawm authored Jan 27, 2024
1 parent 6a1716a commit 23d529e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/telegram/utils/keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ def user_list(users: list, page: int, total_pages: int):
'active': '✅',
'expired': '🕰',
'limited': '📵',
'disabled': '❌'
'disabled': '❌',
'on_hold': '🟡'
}
row.append(types.InlineKeyboardButton(
text=f"{p.username} ({status[p.status]})",
Expand Down Expand Up @@ -339,4 +340,4 @@ def select_protocols(selected_protocols: Dict[str, List[str]],
)
)

return keyboard
return keyboard

0 comments on commit 23d529e

Please sign in to comment.