summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryvesf <yvesf-git@xapek.org>2011-09-04 19:56:19 +0200
committeryvesf <yvesf-git@xapek.org>2011-09-04 19:56:19 +0200
commitf7728b15fdea96376feea5daa187a7afb9ce6802 (patch)
tree5846bb6ed3090863cb5ebaabe9ade8939dca8ef2
parent2ca7db5e4707664a4b34dacbae3f70271324a918 (diff)
downloadebus-alt-f7728b15fdea96376feea5daa187a7afb9ce6802.tar.gz
ebus-alt-f7728b15fdea96376feea5daa187a7afb9ce6802.zip
korrigiere tippfehler wettermichel import
-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(