From 52b1bf270cc3d502e142ed66b008156c7d656b88 Mon Sep 17 00:00:00 2001 From: Israel Figueroa Date: Tue, 2 Feb 2021 01:40:39 +0000 Subject: [PATCH] typo fix --- web/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/__init__.py b/web/__init__.py index 63d5696..04973e5 100644 --- a/web/__init__.py +++ b/web/__init__.py @@ -64,7 +64,7 @@ def create_app(): turnon.curval = 1 turnon.lastoff = ts gpio.output(turnon.pin, gpio.HIGH) - msg = Historial(trigger='timer', mensaje='{} encendido'.format(Estado.pin)) + msg = Historial(trigger='timer', mensaje='{} encendido'.format(turnon.pin)) db.session.add(msg) db.session.flush() else: @@ -73,7 +73,7 @@ def create_app(): gpio.output(turnoff.pin, gpio.LOW) turnoff.curval = 0 turnoff.laston = ts - msg = Historial(trigger='timer', mensaje='{} apagado'.format(Estado.pin)) + msg = Historial(trigger='timer', mensaje='{} apagado'.format(turnoff.pin)) db.session.add(msg) if timer.repeat > 0: timer.repeat = timer.repeat - 1