Commit ac18a969 authored by Alan Marchiori's avatar Alan Marchiori
Browse files

fixed sql query to get latest update in init

parent 8b012bad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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()