We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13a15a1 commit a188fdbCopy full SHA for a188fdb
app/telegram/handlers/admin.py
@@ -503,7 +503,7 @@ def get_user_info_text(
503
'expired': '🕰',
504
'limited': '🪫',
505
'disabled': '❌',
506
- 'onhold': '🔌',
+ 'on_hold': '🔌',
507
}
508
text = f'''\
509
┌─{statuses[status]} <b>Status:</b> <code>{status.title()}</code>
@@ -513,7 +513,7 @@ def get_user_info_text(
513
│ └─<b>Data Used:</b> <code>{readable_size(usage) if usage else "-"}</code>
514
│
515
'''
516
- if status == 'onhold':
+ if status == UserStatus.on_hold:
517
if on_hold_timeout:
518
if isinstance(on_hold_timeout, int):
519
timeout_str = datetime.fromtimestamp(on_hold_timeout).strftime("%Y-%m-%d")
0 commit comments