From ad6d2e3dee958d14fc7ea26f79e138a49196254d Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sun, 16 May 2021 02:45:59 +0300 Subject: fix --- inverter-bot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inverter-bot b/inverter-bot index b8a75fc..921b185 100755 --- a/inverter-bot +++ b/inverter-bot @@ -131,18 +131,18 @@ def msg_generation(update: Update, context: CallbackContext) -> None: yday2 = today - datetime.timedelta(days=2) gs = json.loads(inverter.exec('get-status'))['data'] - sleep(0.1) + # sleep(0.1) gen_today = json.loads(inverter.exec('get-day-generated', (today.year, today.month, today.day)))['data'] gen_yday = None gen_yday2 = None if yday.month == today.month: - sleep(0.1) + # sleep(0.1) gen_yday = json.loads(inverter.exec('get-day-generated', (yday.year, yday.month, yday.day)))['data'] if yday2.month == today.month: - sleep(0.1) + # sleep(0.1) gen_yday2 = json.loads(inverter.exec('get-day-generated', (yday2.year, yday2.month, yday2.day)))['data'] # render response -- cgit v1.2.3