Skip to content

Commit f1c09c8

Browse files
Add new filing_type param to courts endpoint
1 parent f3dc95b commit f1c09c8

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

docassemble/EFSPIntegration/interview_logic.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,14 @@ def contact_fields_with_defaults(
177177
"field": person.attr_name("other_contact_method"),
178178
"input type": "area",
179179
"required": False,
180-
"help": word("""
180+
"help": word(
181+
"""
181182
If you do not have a phone number or email, provide
182183
specific contact instructions. For example, use a friend's phone number.
183184
But the friend must be someone you can rely on to give you a
184185
message.
185-
"""),
186+
"""
187+
),
186188
},
187189
]
188190
if is_admin or not can_check_efile:

docassemble/EFSPIntegration/py_efsp_client.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,10 +699,17 @@ def get_public_list(self):
699699
return self._send(Request("GET", url))
700700

701701
def get_courts(
702-
self, fileable_only: bool = False, with_names: bool = False
702+
self,
703+
fileable_only: bool = False,
704+
fileable_type: str = "",
705+
with_names: bool = False,
703706
) -> ApiResponse:
704707
"""Gets the list of courts."""
705-
params = {"fileable_only": fileable_only, "with_names": with_names}
708+
params = {
709+
"fileable_only": fileable_only,
710+
"fileable_type": fileable_type,
711+
"with_names": with_names,
712+
}
706713
req = Request("GET", self.full_url("codes/courts"), params=params)
707714
return self._send(req)
708715

0 commit comments

Comments
 (0)