Skip to content

Commit aab0f31

Browse files
committed
resolve trailing slash on list_submissions
1 parent f685be6 commit aab0f31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codepost/models/abstract/api_resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def instance_endpoint_by_id(self, id=None):
289289
pass
290290

291291
# CASE 2: The class end point has not formatting parameter
292-
return urljoin(self.class_endpoint, "{}".format(_id))
292+
return urljoin(self.class_endpoint, "{}/".format(_id))
293293

294294
@property
295295
def instance_endpoint(self):

codepost/models/assignments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def list_submissions(self, id=None, student=None, grader=None):
116116

117117
id = self._get_id(id=id)
118118

119-
endpoint = "{}/submissions".format(self.instance_endpoint_by_id(id=id))
119+
endpoint = "{}submissions".format(self.instance_endpoint_by_id(id=id))
120120
endpoint_params = {}
121121

122122
if student != None:

0 commit comments

Comments
 (0)