|
|
@ -655,10 +655,14 @@ if __name__ == '__main__': |
|
|
|
|
|
|
|
now = datetime.datetime.now() |
|
|
|
now_formatted = dateutil.parser.parse(str(now)) |
|
|
|
delta = period_data_formatted - now_formatted |
|
|
|
|
|
|
|
print('delta', delta, int(delta.days)) |
|
|
|
if message_was_already_there == False and int(delta.days) < int(room_deadline_days): |
|
|
|
try: |
|
|
|
delta = period_data_formatted - now_formatted |
|
|
|
days_to_check = delta.days |
|
|
|
except Exception as e: |
|
|
|
days_to_check = int(room_deadline_days) - 1 |
|
|
|
print('calc of delta did now work, original error is:', e) |
|
|
|
#print('delta', delta, int(delta.days)) |
|
|
|
if message_was_already_there == False and int(days_to_check) < int(room_deadline_days): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|