From 43879604d0de3c9d2361d89ae09860e9e2e984f3 Mon Sep 17 00:00:00 2001 From: yvesf Date: Sat, 23 Jul 2011 20:21:31 +0200 Subject: =?UTF-8?q?korrigiere=20ORDRE=20BY=20f=C3=BCr=20einzelne=20werte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ebus/webapp/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ebus/webapp/__init__.py') 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() -- cgit v1.2.1