#!/usr/bin/env python3 import sqlite3 conn = sqlite3.connect('./checkin.db') db = conn.cursor() try: db.execute("CREATE TABLE IF NOT EXISTS code_results (date text, time text, space text, activity text, code text, result boolean)") finally: db.close() conn.close()