diff --git a/statistiques/getStats.py b/statistiques/getStats.py index a993e47..fab9c8c 100755 --- a/statistiques/getStats.py +++ b/statistiques/getStats.py @@ -50,7 +50,7 @@ class SQLite: def dbInsert(self,ts,k,v): self.__openDb() - self.cursor.execute(f"""INSERT INTO {dbname} (timestamp,key_field,value_field) VALUES ('{ts}','{k}','{v}')""") + self.cursor.execute(f"""INSERT INTO {dbName} (timestamp,key_field,value_field) VALUES ('{ts}','{k}','{v}')""") self.conn.commit() self.__closeDb()