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):
|
||||
command: str = f"CREATE TABLE {name} ("
|
||||
for key, value in content.keys():
|
||||
command += f"{key} {value}, "
|
||||
for item in content.keys():
|
||||
command += f"{item[0]} {item[1]}, "
|
||||
command += ")"
|
||||
self.cursor.execute(command)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user