Skip to content

Commit

Permalink
fix status
Browse files Browse the repository at this point in the history
Signed-off-by: anasty17 <[email protected]>
  • Loading branch information
anasty17 committed Nov 15, 2023
1 parent 5db0f6b commit 00795b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bot/helper/ext_utils/status_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ def get_readable_message(sid, is_user, page_no=1, status="All", page_step=1):
if tasks_no > 30:
for i in [1, 2, 4, 6, 8, 10, 15, 20]:
buttons.ibutton(i, f"status {sid} ps {i}", position="footer")
if len(task_dict) > STATUS_LIMIT or status != "All":
for label, status_value in STATUS_VALUES:
if status_value != status:
buttons.ibutton(label, f"status {sid} st {status_value}")
if len(task_dict) > STATUS_LIMIT or status != "All":
for label, status_value in STATUS_VALUES:
if status_value != status:
buttons.ibutton(label, f"status {sid} st {status_value}")
buttons.ibutton("♻️", f"status {sid} ref", position="header")
button = buttons.build_menu(8)
msg += f"<b>CPU:</b> {cpu_percent()}% | <b>FREE:</b> {get_readable_file_size(disk_usage(DOWNLOAD_DIR).free)}"
Expand Down

0 comments on commit 00795b1

Please sign in to comment.