summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-05-16 02:45:59 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-05-16 02:45:59 +0300
commitad6d2e3dee958d14fc7ea26f79e138a49196254d (patch)
tree582beaf43cd92f65f55f3e4963afff25d927559c
parente791d6d919592a475d6fe8f7b281810f21e53fa5 (diff)
-rwxr-xr-xinverter-bot6
1 files 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