Skip to content

Commit

Permalink
update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
samamorgan authored and github-actions[bot] committed Feb 7, 2025
1 parent 2c6be56 commit c3b03c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:

## Python
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.5
hooks:
- id: ruff
args: [--fix]
Expand Down
9 changes: 3 additions & 6 deletions welkin/models/assessment.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,22 +71,19 @@ def create(self, patient_id: str):
@model_id("Patient")
def get(self, patient_id: str):
return super().get(
f"{self._client.instance}/patients/"
f"{patient_id}/assessment-records/{self.id}"
f"{self._client.instance}/patients/{patient_id}/assessment-records/{self.id}"
)

@model_id("Patient")
def update(self, patient_id: str):
return super().put(
f"{self._client.instance}/patients/"
f"{patient_id}/assessment-records/{self.id}"
f"{self._client.instance}/patients/{patient_id}/assessment-records/{self.id}"
)

@model_id("Patient")
def delete(self, patient_id: str):
return super().delete(
f"{self._client.instance}/patients/"
f"{patient_id}/assessment-records/{self.id}",
f"{self._client.instance}/patients/{patient_id}/assessment-records/{self.id}",
)


Expand Down
3 changes: 1 addition & 2 deletions welkin/models/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ def get(
@model_id("Patient")
def update(self, patient_id: str, **kwargs):
return super().patch(
f"{self._client.instance}/patients/{patient_id}/programs/"
f"{self.programName}",
f"{self._client.instance}/patients/{patient_id}/programs/{self.programName}",
kwargs,
)

Expand Down

0 comments on commit c3b03c3

Please sign in to comment.