From 6671090e31ab30711f169abfb61d880b50ba27d8 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 4 Feb 2022 18:07:47 +0000 Subject: Dictionary class. Reformat. --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.py') 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" -- cgit v1.2.3