summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-02-03 18:24:12 +0000
committerroot <root@turin.home>2022-02-03 18:24:12 +0000
commit856ad3f0fbf0f312d238778b7ec26f6430f88d22 (patch)
tree876ef55393258f5fd4d4e641ab017d3f5d6b894c
parent8600370a572ee933cf538cb3dd6fa7098f477c7c (diff)
Minor error
-rw-r--r--main.py2
1 files changed, 1 insertions, 1 deletions
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"