Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f685be6

Browse files
authoredSep 29, 2023
Merge pull request #42 from codepost-io/fix/trailing-slashes
fix trailing slashes from base url and assignments class formatter
2 parents 86dc1e5 + 8acd0bd commit f685be6

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed
 

‎codepost/models/abstract/api_resource.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +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-
# NOTE: Trailing slash important (API bug)
293-
return urljoin(self.class_endpoint, "{}/".format(_id))
292+
return urljoin(self.class_endpoint, "{}".format(_id))
294293

295294
@property
296295
def instance_endpoint(self):

‎codepost/util/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
_LOG_SCOPE = "{}".format(__name__)
7272

7373
SETTINGS_URL = "https://codepost.io/settings"
74-
BASE_URL = "https://api.codepost.io/"
74+
BASE_URL = "https://api.codepost.io"
7575
DEFAULT_API_KEY_ENV = "CP_API_KEY"
7676
DEFAULT_CONFIG_PATHS = [
7777
"codepost-config.yaml",

‎codepost/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Version number
2-
__version__ = "0.2.29"
2+
__version__ = "0.3.1"

0 commit comments

Comments
 (0)
Please sign in to comment.