diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4c06315..8eef76e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/welkin/models/assessment.py b/welkin/models/assessment.py index dda1f08..e347886 100644 --- a/welkin/models/assessment.py +++ b/welkin/models/assessment.py @@ -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}", ) diff --git a/welkin/models/program.py b/welkin/models/program.py index 637b7cb..e61689f 100644 --- a/welkin/models/program.py +++ b/welkin/models/program.py @@ -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, )