fix: use tuple as pro

This commit is contained in:
starnakin 2023-06-04 12:16:15 +02:00
parent eddc6d997d
commit 9958c7232f

View File

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