Commit ac18a969 authored by Alan Marchiori's avatar Alan Marchiori

fixed sql query to get latest update in init

parent 8b012bad
......@@ -119,7 +119,7 @@ class DataLogger:
c.execute(sql)
self.db.commit()
sql = "SELECT last_upload, last_recno FROM datalogger WHERE campbell_id = ?"
sql = "SELECT last_upload, last_recno FROM datalogger WHERE campbell_id = ? ORDER BY ID DESC LIMIT 1"
c.execute(sql, (self.dbid,))
rslt = c.fetchone()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment