configurable points per X second part 2
This commit is contained in:
parent
c4fc1de95c
commit
4a0940b8ff
|
@ -25,7 +25,7 @@ def create_app(test_config=None):
|
||||||
give_points_to_chat(get_db())
|
give_points_to_chat(get_db())
|
||||||
|
|
||||||
points_giver = BackgroundScheduler()
|
points_giver = BackgroundScheduler()
|
||||||
points_giver.add_job(proxy_job, 'interval', seconds=10) # change to 10 minutes out of testing
|
points_giver.add_job(proxy_job, 'interval', seconds=app.config['POINTS_CYCLE_TIME']) # change to 10 minutes out of testing
|
||||||
points_giver.start()
|
points_giver.start()
|
||||||
|
|
||||||
return app
|
return app
|
||||||
|
|
Loading…
Reference in New Issue