Bot into main #71

Merged
NormalParameter merged 55 commits from bot into main 2022-04-25 15:02:35 +00:00
Showing only changes of commit 5311c89193 - Show all commits

View File

@ -40,7 +40,7 @@ def main_loop():
print(time.ctime()) # Debug print(time.ctime()) # Debug
p1 = Process(target= update_crontab, args=(current_time_datetime, )) #Test threading instead of multiprocessing p1 = Process(target= update_crontab, args=(current_time_datetime, ))
p1.start() p1.start()
p3 = Process(target= update_based_on_crontab, args=(current_time_datetime, ) ) p3 = Process(target= update_based_on_crontab, args=(current_time_datetime, ) )
p3.daemon = True p3.daemon = True
@ -73,6 +73,7 @@ def update_crontab(pCurrent_Time):
time_difference = datetime.datetime.now() - pCurrent_Time time_difference = datetime.datetime.now() - pCurrent_Time
if float(str(time_difference).split(':')[0]) >=1: if float(str(time_difference).split(':')[0]) >=1:
update_crontab(datetime.datetime.now()) update_crontab(datetime.datetime.now())
break
def update_based_on_crontab(pCurrent_Time): def update_based_on_crontab(pCurrent_Time):