aboutsummaryrefslogtreecommitdiff
path: root/gerboweb/gerboweb.py
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2019-04-03 23:53:04 +0900
committerjaseg <git@jaseg.net>2019-04-03 23:53:04 +0900
commita54abadf01e9e543b416ed09e8500ed71170342c (patch)
tree55cc822469ddd5eb1e95c9d407b6b08f506e0c99 /gerboweb/gerboweb.py
parentcbb98bcf0ee0e9e123f054377ff68b513efe6bf6 (diff)
downloadgerbolyze-a54abadf01e9e543b416ed09e8500ed71170342c.tar.gz
gerbolyze-a54abadf01e9e543b416ed09e8500ed71170342c.tar.bz2
gerbolyze-a54abadf01e9e543b416ed09e8500ed71170342c.zip
gerbolyze fixes, clippy experiments
Diffstat (limited to 'gerboweb/gerboweb.py')
-rw-r--r--gerboweb/gerboweb.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gerboweb/gerboweb.py b/gerboweb/gerboweb.py
index 7e952a4..2633e7b 100644
--- a/gerboweb/gerboweb.py
+++ b/gerboweb/gerboweb.py
@@ -62,13 +62,13 @@ def index():
'overlay_form': OverlayForm(),
'reset_form': ResetForm() }
- for job in ('vector_job', 'render_job'):
- if job in session:
- job = job_queue[session[job]]
+ for job_type in ('vector_job', 'render_job'):
+ if job_type in session:
+ job = job_queue[session[job_type]]
if job.finished:
if job.result != 0:
flash(f'Error processing gerber files', 'success') # FIXME make this an error, add CSS
- del session[job]
+ del session[job_type]
r = make_response(render_template('index.html',
has_renders = path.isfile(tempfile_path('gerber.zip')),