Skip to content

Commit ab78b72

Browse files
authored
Merge pull request #82 from rYR79435/dev
Encode slashes in challenge_name
2 parents 5d3ce39 + a6df2ff commit ab78b72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

maproulette/api/challenge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def get_challenge_by_name(self, project_id, challenge_name):
5151
:param challenge_name: the name corresponding to the challenge
5252
:returns: the API response from the GET request
5353
"""
54-
response = self.get(endpoint=f"/project/{project_id}/challenge/{challenge_name}")
54+
response = self.get(endpoint=f"/project/{project_id}/challenge/{challenge_name.replace('/', '%2F')}")
5555
return response
5656

5757
def get_challenges_by_tags(self, challenge_tags, limit=10, page=0):

0 commit comments

Comments
 (0)