fix: use cursor() and not cursor

This commit is contained in:
starnakin 2023-06-04 12:05:32 +02:00
parent edb1756c69
commit 8c6a3400f6

View File

@ -19,7 +19,7 @@ class Database:
user = user, user = user,
password = password, password = password,
) )
self.cursor = self.mydb.cursor self.cursor = self.mydb.cursor()
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} ("