summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-02-04 18:07:47 +0000
committerroot <root@turin.home>2022-02-04 18:07:47 +0000
commit6671090e31ab30711f169abfb61d880b50ba27d8 (patch)
tree8952c13c358694c423f67e5e1e09223ed090a326 /main.py
parent0e23673e015a5261019a151f22b419f4c80b7e8d (diff)
Dictionary class. Reformat.
Diffstat (limited to 'main.py')
-rw-r--r--main.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.py b/main.py
index df6d919..7559888 100644
--- a/main.py
+++ b/main.py
@@ -83,9 +83,10 @@ def export(opt):
for i in data:
o += str(i) + "\n"
con.close()
- with open('static/export.txt', 'w') as file:
+ # writing data to a file
+ with open("static/export.txt", "w") as file:
file.write(o)
- return redirect('/static/export.txt')
+ return redirect("/static/export.txt")
else:
return render_template(
"error.html", error="Invalid export type"