From 8c7c85192c780267d84fd5bfc52b53ac9035a204 Mon Sep 17 00:00:00 2001 From: David Date: Sun, 18 Dec 2022 23:09:41 +0100 Subject: [PATCH] Correction typo --- statistiques/getStats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/statistiques/getStats.py b/statistiques/getStats.py index 27892f7..56e6212 100755 --- a/statistiques/getStats.py +++ b/statistiques/getStats.py @@ -7,6 +7,7 @@ import sys import requests import time import datetime +import sqlite3 # Constantes api_url = 'http://localhost:8080/colibri/stats' @@ -21,7 +22,7 @@ class SQLite: def __initDb(self): self.__openDb() - cursor.execute(''' create table jististats( + self.cursor.execute(''' create table jististats( id integer primary key autoincrement, timestamp text, key_field text,