From fb0b5eab5d65ffba31d7cee2b9c98849b89058af Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 11 Jan 2022 21:40:55 +0000 Subject: [PATCH] Make cheating configurable --- handler/agora.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/handler/agora.py b/handler/agora.py index 8c16453..b8c788e 100644 --- a/handler/agora.py +++ b/handler/agora.py @@ -46,9 +46,9 @@ class Agora(object): """ self.lc_dash = LoopingCall(self.loop_check) self.lc_dash.start(int(settings.Agora.RefreshSec)) - - self.lc_cheat = LoopingCall(self.update_prices) - self.lc_cheat.start(int(settings.Agora.CheatSec)) + if settings.Agora.Cheat == "1": + self.lc_cheat = LoopingCall(self.update_prices) + self.lc_cheat.start(int(settings.Agora.CheatSec)) def wrap_dashboard(self): try: