diff --git a/Database.py b/Database.py index f3b64a6..b36ebc2 100644 --- a/Database.py +++ b/Database.py @@ -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)