Commit 9362e073 authored by Alan Marchiori's avatar Alan Marchiori

added code to delete records;

parent 8aae712a
......@@ -31,6 +31,11 @@ for campbell_id, serialno in c.fetchall():
for last_upload, last_recno in c.fetchall():
print (" {}: {}".format(last_upload, last_recno))
c.execute ("DELETE FROM datalogger "+\
"WHERE campbell_id = ? AND "+\
'date(last_upload) > "2015-03-01"', (campbell_id,))
\ No newline at end of file
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