Skip to content

Commit

Permalink
[notebook] Fix dictionary comprehension for Python 2.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenny Kim committed Oct 3, 2015
1 parent 5454cde commit d862538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/libs/notebook/src/notebook/api.py
Expand Up @@ -185,7 +185,7 @@ def get_logs(request):
# Append new jobs to known jobs and get the unique set
if new_jobs:
all_jobs = jobs + new_jobs
jobs = {job['name']: job for job in all_jobs}.values()
jobs = dict((job['name'], job) for job in all_jobs).values()

response['logs'] = logs
response['progress'] = db.progress(snippet, logs) if snippet['status'] != 'available' and snippet['status'] != 'success' else 100
Expand Down

0 comments on commit d862538

Please sign in to comment.