get the db_name into those files the new way

This commit is contained in:
carnal0wnage
2018-04-23 22:56:10 -04:00
parent 386fc4580d
commit ce0a8fff59
2 changed files with 14 additions and 2 deletions

View File

@@ -1,10 +1,19 @@
'''
Create the sqlite3 database for WeirdAAL
'''
import builtins
import sqlite3
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__":
create_awskey_table(db_name, "AWSKey")

View File

@@ -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