diff options
Diffstat (limited to 'gerboweb/gerboweb.py')
-rw-r--r-- | gerboweb/gerboweb.py | 8 |
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')), |