File size: 551 Bytes
c9329ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# import schedule
# import threading
# import time
# import datetime
# from functi import db_manager,add_scheduling,planning




# def background_scheduler():
#      while True:
#         try:
#             schedule.run_pending()
#         except Exception as e:
#             print("Erreur dans run_pending():", e, flush=True)
#         time.sleep(1)


# thread = threading.Thread(target=background_scheduler)
# thread.start()
# print("it actually worked")
# threading.Thread(target=planning, daemon=True).start()