Foppe Hemminga преди 6 години
родител
ревизия
6867a7c81f
променени са 2 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 2 1
      main.py
  2. 1 1
      model.py

+ 2 - 1
main.py

@@ -61,7 +61,8 @@ if __name__ == '__main__':
             name_alert = status['name']
             id_alert = status['id']
             url_alert = f'https://www.torn.com/profiles.php?XID={id_alert}'
-            alert = f"Alert: {minutes_to_go} mins to attack [{name_alert} \[{id_alert}\]]({url_alert}). Be there at {attack_time_time}!"
+            alert = f'Alert: {minutes_to_go} mins to attack [{name_alert} \[{id_alert}\]]({url_alert}). ' + \
+                    f'Be there at {attack_time_time}!'
             print('Sending alert')
             view.send_alert(alert)
 

+ 1 - 1
model.py

@@ -158,5 +158,5 @@ def calculate_time_to_next_attack(this_player_id):
     # diff_in_minutes = int(diff//60)
     print(
         f'starting time {starting_time}, seconds_till_level_iv {seconds_till_level_iv}, ' +
-        'apocalypse_time {apocalypse_time}')
+        f'apocalypse_time {apocalypse_time}')
     return diff, apocalypse_time