Dec-26-2018, 11:08 PM
My best guess, without playing around with it, is that
cursor.execute('INSERT INTO readings (ID, r_date, rtype, hist, scan) VALUES (?, ?, ?, ?, ?)', row)ought to be
cursor.execute('INSERT INTO readings (ID, r_date, rtype, hist, scan) VALUES (?, ?, ?, ?, ?)', row[:5])