summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"