fix: use tuple as pro
This commit is contained in:
parent
eddc6d997d
commit
9958c7232f
@ -34,8 +34,8 @@ class Database:
|
|||||||
|
|
||||||
def _create_table(self, name: str, content: dict):
|
def _create_table(self, name: str, content: dict):
|
||||||
command: str = f"CREATE TABLE {name} ("
|
command: str = f"CREATE TABLE {name} ("
|
||||||
for key, value in content.keys():
|
for item in content.keys():
|
||||||
command += f"{key} {value}, "
|
command += f"{item[0]} {item[1]}, "
|
||||||
command += ")"
|
command += ")"
|
||||||
self.cursor.execute(command)
|
self.cursor.execute(command)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user