Skip to content

Commit

Permalink
docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
snopoke committed Jul 25, 2023
1 parent 5c3e178 commit 3bfdb92
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions commcare_connect/form_receiver/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@


def process_xform(domain: str, app_id: str, form: dict):
"""Process a form received from CommCare HQ.
:param domain: The domain of the form.
:param app_id: The ID of the application the form belongs to.
:param form: The JSON form data."""
processors = [
(LEARN_MODULE_JSONPATH, process_learn_modules),
(ASSESSMENT_JSONPATH, process_assessments),
Expand All @@ -22,9 +27,15 @@ def process_xform(domain: str, app_id: str, form: dict):
raise ProcessingError from e


def process_learn_modules(domain, app_id, modules):
def process_learn_modules(domain: str, app_id: str, modules: list[dict]):
"""Process learn modules from a form received from CommCare HQ.
:param modules: A list of learn module form blocks."""
pass


def process_assessments(domain, app_id, assessments):
def process_assessments(domain: str, app_id: str, assessments: list[dict]):
"""Process assessments from a form received from CommCare HQ.
:param assessments: A list of assessment form blocks."""
pass

0 comments on commit 3bfdb92

Please sign in to comment.