def get_sxs(label_id, notice): """ Given a paragraph label_id, find the sxs analysis for that paragraph if it exists and has content. """ all_sxs = notice['section_by_section'] relevant_sxs = notices.find_label_in_sxs(all_sxs, label_id) return relevant_sxs
def get_sxs(label_id, notice, fr_page=None): """ Given a paragraph label_id, find the sxs analysis for that paragraph if it exists and has content. fr_page is used to distinguish between multiple analyses in the same notice.""" all_sxs = notice['section_by_section'] relevant_sxs = notices.find_label_in_sxs(all_sxs, label_id, fr_page) return relevant_sxs