From f7728b15fdea96376feea5daa187a7afb9ce6802 Mon Sep 17 00:00:00 2001 From: yvesf Date: Sun, 4 Sep 2011 19:56:19 +0200 Subject: korrigiere tippfehler wettermichel import --- bin/wettermichel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/wettermichel.py b/bin/wettermichel.py index 4be22d7..57b517a 100755 --- a/bin/wettermichel.py +++ b/bin/wettermichel.py @@ -30,7 +30,7 @@ def get_sensor_id(sensor_name): conn.execute(text("""INSERT INTO sensor(name) VALUES (:name)"""), name = sensor_name) soup.commit() - return sensor_id = soup.sensor.filter(soup.sensor.name == sensor_name).one().id + return soup.sensor.filter(soup.sensor.name == sensor_name).one().id def insert(sensor_name,value_int=None, value_float=None, value_string=None): sql = text("""INSERT INTO value( -- cgit v1.2.1