summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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