Skip to content

Commit

Permalink
Merge pull request #1273 from hotosm/develop
Browse files Browse the repository at this point in the history
Version 3.0.5 - Bug fixes
  • Loading branch information
dakotabenjamin authored Nov 22, 2018
2 parents f17ece8 + 1094a39 commit 6ab9826
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/api/users/user_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def post(self, is_expert):
default: Token sessionTokenHere==
- name: is_expert
in: path
description: 'true' to enable expert mode, 'false' to disable
description: true to enable expert mode, false to disable
required: true
type: string
responses:
Expand Down
4 changes: 2 additions & 2 deletions server/services/mapping_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def generate_gpx(project_id: int, task_ids_str: str, timestamp=None):
if task_ids_str is not None:
task_ids = map(int, task_ids_str.split(','))
tasks = Task.get_tasks(project_id, task_ids)
if not tasks or len(tasks) == 0:
if not tasks or tasks.count() == 0:
raise NotFound()
else:
tasks = Task.get_all_tasks(project_id)
Expand Down Expand Up @@ -210,7 +210,7 @@ def generate_osm_xml(project_id: int, task_ids_str: str) -> str:
if task_ids_str:
task_ids = map(int, task_ids_str.split(','))
tasks = Task.get_tasks(project_id, task_ids)
if not tasks or len(tasks) == 0:
if not tasks or tasks.count() == 0:
raise NotFound()
else:
tasks = Task.get_all_tasks(project_id)
Expand Down

0 comments on commit 6ab9826

Please sign in to comment.