Changed the price update API interval
This commit is contained in:
parent
49a3295225
commit
bb717d9b29
@ -2656,7 +2656,7 @@ if not os.path.isfile(f"system.db"):
|
|||||||
|
|
||||||
# assign a scheduler for updating prices in the background
|
# assign a scheduler for updating prices in the background
|
||||||
scheduler = BackgroundScheduler()
|
scheduler = BackgroundScheduler()
|
||||||
scheduler.add_job(func=updatePrices, trigger="interval", seconds=600)
|
scheduler.add_job(func=updatePrices, trigger="interval", seconds=7200)
|
||||||
scheduler.start()
|
scheduler.start()
|
||||||
# Shut down the scheduler when exiting the app
|
# Shut down the scheduler when exiting the app
|
||||||
atexit.register(lambda: scheduler.shutdown())
|
atexit.register(lambda: scheduler.shutdown())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user