You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Only solution I can think of would require court database owners to assign each court a unique ID
239
239
# and something that triggers recalculating the court address/etc info.
240
240
241
-
defall_courts(self) ->List[Dict[int, str]]:
241
+
defall_courts(self) ->List[Tuple[int, str]]:
242
242
"""
243
243
Return a list of all courts in the spreadsheet.
244
244
245
245
Returns:
246
-
List[Dict[int, str]]: List of all ALCourt instances without filtering.
246
+
List[Tuple[int, str]]: List of tuples where each tuple contains (dataframe_index, display_value). The dataframe_index (int) can be used with as_court() to retrieve the full court object. The display_value (str) is the court's name or other display column value.
the search_string in a case-insensitive manner. Defaults to None.
347
348
348
349
Returns:
349
-
List[Dict[int, str]]: List of dictionaries representing matching courts.
350
+
List[Tuple[int, str]]: List of tuples where each tuple contains (dataframe_index, display_value). The dataframe_index (int) can be used with as_court() to retrieve the full court object. The display_value (str) is the court's name or other display column value.
Return a filtered subset of courts represented as a list of dictionaries.
369
+
Return a filtered subset of courts represented as a list of tuples.
369
370
370
-
Each dictionary has the format {index: name}, where "index" refers to the dataframe index and "name"
371
+
Each tuple has the format (index, display_value), where "index" refers to the dataframe index and "display_value"
371
372
is determined by the `display_column`.
372
373
373
374
Args:
@@ -380,7 +381,7 @@ def filter_courts(
380
381
the search_string in a case-insensitive manner. Defaults to None.
381
382
382
383
Returns:
383
-
List[Dict[int, str]]: List of dictionaries representing filtered courts.
384
+
List[Tuple[int, str]]: List of tuples where each tuple contains (dataframe_index, display_value). The dataframe_index (int) can be used with as_court() to retrieve the full court object. The display_value (str) is the court's name or other display column value.
0 commit comments