diff --git a/fec/data/api_caller.py b/fec/data/api_caller.py index 8e76144a1..23c5d1344 100644 --- a/fec/data/api_caller.py +++ b/fec/data/api_caller.py @@ -180,13 +180,13 @@ def load_legal_adr(adr_no): # Or any default value you prefer if the list is empty adr["disposition_text"] = None - adr["collated_dispositions"] = collate_dispositions(adr["adr_dispositions"]) + adr["collated_dispositions"] = collate_dispositions(adr["dispositions"]) adr["complainants"] = complainants adr["participants_by_type"] = _get_sorted_participants_by_type(adr) referring_office = None # Initialize referring_office variable - for disposition in adr["adr_dispositions"]: + for disposition in adr["dispositions"]: if "Received from" in disposition["disposition"]: referring_office = disposition["disposition"] # Transformation dictionary for referring office @@ -228,7 +228,7 @@ def load_legal_admin_fines(admin_fine_no): documents_by_type[doc["category"]] = [doc] admin_fine["documents_by_type"] = documents_by_type disposition_items = OrderedDict() - for item in admin_fine["af_dispositions"]: + for item in admin_fine["dispositions"]: if item["disposition_description"] in disposition_items: disposition_items[item["disposition_description"]].append(item) else: diff --git a/fec/legal/templates/legal-admin_fine.jinja b/fec/legal/templates/legal-admin_fine.jinja index 86bae184c..c6a926085 100644 --- a/fec/legal/templates/legal-admin_fine.jinja +++ b/fec/legal/templates/legal-admin_fine.jinja @@ -73,7 +73,7 @@
- {% if 'af_dispositions' in admin_fine and admin_fine.disposition_items %} + {% if 'dispositions' in admin_fine and admin_fine.disposition_items %} {% for item in admin_fine.disposition_items %} {% set itemloop = loop %} {% for item in admin_fine.disposition_items[item] %}