Example #1
0
def main():
    connection = sqlite3.connect('cinema')
    connection.row_factory = sqlite3.Row
    cursor = connection.cursor()
    cursor.execute('''CREATE TABLE IF NOT EXISTS cinema(id INTEGER PRIMARY KEY,
    name TEXT)''')
    Projections.load_reservations()
    connection.commit()
    Reservations.create_database(connection, cursor)
    Projections.create_database(connection, cursor)
    Movies.create_database(connection, cursor)
    cinema = Cinema()
    cinema.main_menu(cursor, connection)