Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature/PI-563-read_a_questionnaire] read questionnaire #364

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jaklinger
Copy link
Contributor

No description provided.

@jaklinger jaklinger requested a review from a team as a code owner October 17, 2024 16:09
@jaklinger jaklinger force-pushed the feature/PI-563-read_a_questionnaire branch 2 times, most recently from 30b731b to 34377c8 Compare October 18, 2024 08:13
Copy link

sonarcloud bot commented Oct 18, 2024

return repo.read(name=path_params.questionnaire_id)


def questionnaire_to_dict(data, cache) -> dict:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tuple[HttpStatus, dict]


def questionnaire_to_dict(data, cache) -> dict:
questionnaire: Questionnaire = data[read_questionnaire]
return questionnaire.state()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HttpStatus.OK, questionnaire.state()

jameslinnell
jameslinnell previously approved these changes Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants