Skip to content

Commit

Permalink
simplify rest response
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Santagada committed Aug 14, 2013
1 parent 2ca5fcf commit 50f48ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions timtec/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,4 @@ def get(self):
lesson_name = self.request.matchdict['lesson']
lesson = DBSession.query(Lesson).join(Lesson.course) \
.filter(Lesson.name == lesson_name).filter(Course.slug == course_slug).first()
response = {}
response['blocks'] = lesson.blocks
return response
return {'blocks': lesson.blocks}

0 comments on commit 50f48ff

Please sign in to comment.