Use a Context Manager for sqlite3 Connections
cancan101 opened this issue · 0 comments
cancan101 commented
See: https://docs.python.org/2/library/sqlite3.html#using-the-connection-as-a-context-manager
This will clean up a lot of the db.commit()
calls.