Browse Source

No alert at 0

Foppe Hemminga 6 năm trước cách đây
mục cha
commit
cb3e7662a0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -57,7 +57,7 @@ if __name__ == '__main__':
         print(t)
         status['time_string'] = t
 
-        if minutes_to_go < 20 and minutes_to_go % 5 == 0:
+        if minutes_to_go < 20 and minutes_to_go % 5 == 0 and minutes_to_go != 0:
             name_alert = status['name']
             id_alert = status['id']
             url_alert = f'https://www.torn.com/profiles.php?XID={id_alert}'