Skip to content

Commit

Permalink
Fix flake8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
pgiraud authored Aug 23, 2017
1 parent a9ab83d commit 166f78a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion osmtm/views/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ def get_projects(request, items_per_page):
filter = and_(Project.status != Project.status_archived, filter)

sort_by = 'project.%s' % request.params.get('sort_by', 'priority')
if sort_by not in ['project.priority', 'project.created', 'project.last_update']:
if sort_by not in ['project.priority',
'project.created',
'project.last_update']:
sort_by = 'project.priority'
direction = request.params.get('direction', 'asc')
if direction not in ['asc', 'desc']:
Expand Down

0 comments on commit 166f78a

Please sign in to comment.