diff options
| author | root <root@turin.home> | 2022-02-04 18:07:47 +0000 |
|---|---|---|
| committer | root <root@turin.home> | 2022-02-04 18:07:47 +0000 |
| commit | 6671090e31ab30711f169abfb61d880b50ba27d8 (patch) | |
| tree | 8952c13c358694c423f67e5e1e09223ed090a326 /main.py | |
| parent | 0e23673e015a5261019a151f22b419f4c80b7e8d (diff) | |
Dictionary class. Reformat.
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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" |
