From 856ad3f0fbf0f312d238778b7ec26f6430f88d22 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 3 Feb 2022 18:24:12 +0000 Subject: Minor error --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index bfcb100..e31907e 100644 --- a/main.py +++ b/main.py @@ -78,7 +78,7 @@ def export(opt): if opt in ["temperature", "weather", "history", "schedule"]: con = sqlite3.connect(DBFILE) cur = con.cursor() - data = cur.exec("select * from {}".format(opt)) + data = cur.execute("select * from {}".format(opt)) o = "" for i in data: o += str(a) + "\n" -- cgit v1.2.3