Skip to content

Commit

Permalink
Release v1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
6nv committed Nov 3, 2023
1 parent 6fb8a10 commit 3677358
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.0.4

- Use `draft-07` JSON schema
- Internal function documentation (Python)

## 1.0.3

- Fix bug where some version numbers weren't replaced. Version numbers are only replaced in select files.
Expand Down
1 change: 1 addition & 0 deletions py/src/dcTrackClient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def generateToken(self) -> str:
raise Exception('Username/password undefined or token predefined.')

def __request(self, method: str, endpoint: str, body: dict = None):
"""Internal class method."""
if not self.__APITOKEN:
self.__APITOKEN = self.generateToken()
return requests.request(method, self.__BASE_URL + '/' + endpoint, json=body, headers={'Authorization': 'Bearer ' + self.__APITOKEN}).json()
2 changes: 1 addition & 1 deletion schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"patternProperties": {
"^\\$": true,
Expand Down

0 comments on commit 3677358

Please sign in to comment.