From 4a0940b8ff255b9981dfa64bfdaa43cb48aef6c2 Mon Sep 17 00:00:00 2001 From: Lili Date: Mon, 5 Sep 2022 13:20:39 +0200 Subject: [PATCH] configurable points per X second part 2 --- tlapbot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tlapbot/__init__.py b/tlapbot/__init__.py index 7bd2a04..dc184a6 100644 --- a/tlapbot/__init__.py +++ b/tlapbot/__init__.py @@ -25,7 +25,7 @@ def create_app(test_config=None): give_points_to_chat(get_db()) 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() return app