|
@@ -1,6 +1,7 @@
|
|
|
#! venv/bin/python
|
|
#! venv/bin/python
|
|
|
import json
|
|
import json
|
|
|
# import sys
|
|
# import sys
|
|
|
|
|
+import math
|
|
|
from pprint import pprint
|
|
from pprint import pprint
|
|
|
|
|
|
|
|
import arrow
|
|
import arrow
|
|
@@ -52,7 +53,7 @@ if __name__ == '__main__':
|
|
|
player_name = status['name']
|
|
player_name = status['name']
|
|
|
attack_time_object = arrow.get(attack_time)
|
|
attack_time_object = arrow.get(attack_time)
|
|
|
attack_time_time = attack_time_object.format('hh:mm A')
|
|
attack_time_time = attack_time_object.format('hh:mm A')
|
|
|
- minutes_to_go = int(seconds_to_go // 60)
|
|
|
|
|
|
|
+ minutes_to_go = math.floor(seconds_to_go / 60)
|
|
|
t = f'In < {minutes_to_go} mins ({attack_time_time}) {player_name} [{player_id}] reaches level IV'
|
|
t = f'In < {minutes_to_go} mins ({attack_time_time}) {player_name} [{player_id}] reaches level IV'
|
|
|
print(t)
|
|
print(t)
|
|
|
status['time_string'] = t
|
|
status['time_string'] = t
|