get the db_name into those files the new way
This commit is contained in:
@@ -1,10 +1,19 @@
|
|||||||
|
'''
|
||||||
|
Create the sqlite3 database for WeirdAAL
|
||||||
|
'''
|
||||||
|
|
||||||
|
import builtins
|
||||||
import sqlite3
|
import sqlite3
|
||||||
from sqlite3 import Error
|
from sqlite3 import Error
|
||||||
|
|
||||||
from libs.sql import *
|
from libs.sql import *
|
||||||
|
|
||||||
|
|
||||||
#create some tables to stick data in
|
|
||||||
|
# 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__":
|
if __name__ == "__main__":
|
||||||
create_awskey_table(db_name, "AWSKey")
|
create_awskey_table(db_name, "AWSKey")
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
|
import builtins
|
||||||
import datetime
|
import datetime
|
||||||
import sqlite3
|
import sqlite3
|
||||||
from sqlite3 import Error
|
from sqlite3 import Error
|
||||||
|
|
||||||
from libs.sql import *
|
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
|
#create some tables to stick data in
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user