temp commit
This commit is contained in:
parent
d80e3741d4
commit
fd5f179df3
7
db.py
7
db.py
@ -27,7 +27,7 @@ class db_module():
|
|||||||
|
|
||||||
def dirtyModeSetup(self):
|
def dirtyModeSetup(self):
|
||||||
self.create_table('testing')
|
self.create_table('testing')
|
||||||
self.get_data()
|
self.get_data(key = "testerinoz")
|
||||||
|
|
||||||
def setup_connection(self, newName:str):
|
def setup_connection(self, newName:str):
|
||||||
self.dbName = newName
|
self.dbName = newName
|
||||||
@ -43,6 +43,9 @@ class db_module():
|
|||||||
self.cursor.execute("INSERT INTO testing VALUES ('testing','testerinozy','extra stuff 3')")
|
self.cursor.execute("INSERT INTO testing VALUES ('testing','testerinozy','extra stuff 3')")
|
||||||
self.connection.commit()
|
self.connection.commit()
|
||||||
|
|
||||||
|
def create_json_obj_table():
|
||||||
|
pass
|
||||||
|
|
||||||
def does_table_exist(self, tableName: str = ""):
|
def does_table_exist(self, tableName: str = ""):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -58,7 +61,7 @@ class db_module():
|
|||||||
print(resultz)
|
print(resultz)
|
||||||
print("loop")
|
print("loop")
|
||||||
for thing in resultz:
|
for thing in resultz:
|
||||||
if thing[1] == "testerino":
|
if thing[1] == key:
|
||||||
print("found it")
|
print("found it")
|
||||||
print(thing[2])
|
print(thing[2])
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user