summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/wettermichel.py2
1 files changed, 1 insertions, 1 deletions
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(