Skip to content

Commit

Permalink
Skip docs for deprecated modules
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Sep 21, 2023
1 parent a56a5dd commit e32ae70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ def skip_member_filter(
Returns:
Whether to skip the member.
"""
if name == "citric.rest.client":
if name == "citric.rest.client" or name.startswith(
("citric.client", "citric.session", "citric.method"),
):
skip = True
return skip

Expand Down
6 changes: 3 additions & 3 deletions src/citric/rest/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def get_surveys(self) -> list[dict[str, t.Any]]:
Returns:
List of surveys.
"""
response = self._make_request("GET", "/rest/v1/survey")
response = self.make_request("GET", "/rest/v1/survey")
return response.json()["surveys"]

def get_survey_details(self, survey_id: int) -> dict[str, t.Any]:
Expand All @@ -164,7 +164,7 @@ def get_survey_details(self, survey_id: int) -> dict[str, t.Any]:
Returns:
Survey details.
"""
response = self._make_request("GET", f"/rest/v1/survey-detail/{survey_id}")
response = self.make_request("GET", f"/rest/v1/survey-detail/{survey_id}")
return response.json()["survey"]

def update_survey_details(
Expand All @@ -181,7 +181,7 @@ def update_survey_details(
Returns:
Updated survey details.
"""
response = self._make_request(
response = self.make_request(
"PATCH",
f"/rest/v1/survey-detail/{survey_id}",
json={
Expand Down

0 comments on commit e32ae70

Please sign in to comment.