get the db_name into those files the new way
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
'''
|
||||
Create the sqlite3 database for WeirdAAL
|
||||
'''
|
||||
|
||||
import builtins
|
||||
import sqlite3
|
||||
from sqlite3 import Error
|
||||
|
||||
from libs.sql import *
|
||||
|
||||
|
||||
|
||||
# Provides us with a global var "db_name" we can access anywhere
|
||||
builtins.db_name = "weirdAAL.db"
|
||||
|
||||
# create some tables to stick data in
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import builtins
|
||||
import datetime
|
||||
import sqlite3
|
||||
from sqlite3 import Error
|
||||
|
||||
from libs.sql import *
|
||||
|
||||
# Provides us with a global var "db_name" we can access anywhere
|
||||
builtins.db_name = "weirdAAL.db"
|
||||
|
||||
#create some tables to stick data in
|
||||
|
||||
|
||||
Reference in New Issue
Block a user