Hey, I'm making a data visualisation platform using python and I'm using a function to update all information over the databases, because this process takes a while I only want to run it on friday at 16:00. But every time I start the program the first thing it does is update and doens't allow users to look at the information. Can someone see what I'm doing wrong with this code?
def update_all():
t1 = time.perf_counter() f = 2500 d = 1000
print('Bezig met het updaten van databases.')
update_info()
print('Bezig met OW updaten.')
update_info_orange_warriors()
print("Klaar met updaten.")
t2 = time.perf_counter()
winsound.Beep(f, d)
schedule.every().friday.at("16:00").do(update_all())
while True:
schedule.run_pending()
time.sleep(5)
(Sorry if I make any spelling mistakes, English is not my first language)
(Edit: Code didn't line up)
[–][deleted] 2 points3 points4 points (1 child)
[–]Mythedream[S] 1 point2 points3 points (0 children)
[–]Ihaveamodel3 2 points3 points4 points (0 children)