Changed the price update API interval

This commit is contained in:
Vivek Teega 2024-09-18 13:52:17 +05:30
parent 49a3295225
commit bb717d9b29

View File

@ -2656,7 +2656,7 @@ if not os.path.isfile(f"system.db"):
# assign a scheduler for updating prices in the background
scheduler = BackgroundScheduler()
scheduler.add_job(func=updatePrices, trigger="interval", seconds=600)
scheduler.add_job(func=updatePrices, trigger="interval", seconds=7200)
scheduler.start()
# Shut down the scheduler when exiting the app
atexit.register(lambda: scheduler.shutdown())