Update to flask 2.0

This commit is contained in:
Eric Helgeson 2021-05-13 12:17:15 -05:00
parent ab0082dfcc
commit a2a323cdb8
2 changed files with 6 additions and 6 deletions

View File

@ -1,12 +1,12 @@
click==7.1.2
Flask==1.1.2
itsdangerous==1.1.0
Jinja2==2.11.2
Flask==2.0.0
itsdangerous==2.0.0
Jinja2==3.0.0
machfs==1.2.4
macresources==1.2
MarkupSafe==1.1.1
MarkupSafe==2.0.0
rsrcfork==1.8.0
waitress==1.4.4
Werkzeug==1.0.1
Werkzeug==2.0.0
zope.event==4.5.0
zope.interface==5.1.2

View File

@ -55,7 +55,7 @@ def config_save():
with open(file_name, "w") as csv_file:
writer = csv.writer(csv_file)
for device in list_devices():
if device["type"] is not "-":
if device["type"] != "-":
writer.writerow(device.values())
flash(f"Saved config to {file_name}!")
return redirect(url_for("index"))