@@ -140,10 +140,10 @@ if __name__ == '__main__':
cur3 = db.cursor(cursor_factory=psycopg2.extras.NamedTupleCursor)
cur3.execute(query, (scratching.venue, scratching.date,
scratching.race, scratching.horse))
- db.commit()
cur3.close()
print('Stored: {}'.format(scratching))
time.sleep(0.5)
+ db.commit()
db.close()
interim = time.time()