diff options
Diffstat (limited to 'ebus/webapp')
-rw-r--r-- | ebus/webapp/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ebus/webapp/__init__.py b/ebus/webapp/__init__.py index cd5de8c..2a92b57 100644 --- a/ebus/webapp/__init__.py +++ b/ebus/webapp/__init__.py @@ -43,7 +43,7 @@ def sensor_data(name): s = text("""SELECT timestamp, COALESCE(value_int, value_float) as "value_real" FROM value WHERE sensor_id = :sensor_id - ORDER BY timestamp + ORDER BY timestamp DESC LIMIT 1""") value = conn.execute(s, sensor_id=sensor_id).first() |