From 141f78a7b5751a7c8deb0cbcb980133ac64ac27e Mon Sep 17 00:00:00 2001 From: Eduardo Rosendo Date: Tue, 17 Dec 2024 23:06:43 -0400 Subject: [PATCH] refactor(recap): Remove `prayer_is_eligible` from views --- cl/opinion_page/views.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cl/opinion_page/views.py b/cl/opinion_page/views.py index 9d76ac8062..3836eefc34 100644 --- a/cl/opinion_page/views.py +++ b/cl/opinion_page/views.py @@ -376,7 +376,6 @@ def paginate_docket_entries(docket_entries, docket_page): paginated_entries = await paginate_docket_entries(de_list, page) - prayer_is_eligible = False flag_for_prayers = await sync_to_async(waffle.flag_is_active)( request, "pray-and-pay" ) @@ -396,7 +395,6 @@ def paginate_docket_entries(docket_entries, docket_page): existing_prayers = await get_existing_prayers_in_bulk( request.user, recap_documents ) - prayer_is_eligible = await prayer_eligible(request.user) # Merge counts and existing prayer status to RECAPDocuments. for rd in recap_documents: @@ -412,7 +410,6 @@ def paginate_docket_entries(docket_entries, docket_page): "sort_order_asc": sort_order_asc, "form": form, "get_string": make_get_string(request), - "prayer_eligible": prayer_is_eligible, } ) return TemplateResponse(request, "docket.html", context) @@ -712,7 +709,6 @@ async def view_recap_document( de = await DocketEntry.objects.aget(id=rd.docket_entry_id) d = await Docket.objects.aget(id=de.docket_id) - prayer_is_eligible = False flag_for_prayers = await sync_to_async(waffle.flag_is_active)( request, "pray-and-pay" ) @@ -725,7 +721,6 @@ async def view_recap_document( existing_prayers = await get_existing_prayers_in_bulk( request.user, [rd] ) - prayer_is_eligible = await prayer_eligible(request.user) # Merge counts and existing prayer status to RECAPDocuments. rd.prayer_count = prayer_counts.get(rd.id, 0) @@ -743,7 +738,6 @@ async def view_recap_document( "timezone": COURT_TIMEZONES.get(d.court_id, "US/Eastern"), "redirect_to_pacer_modal": redirect_to_pacer_modal, "authorities": await rd.cited_opinions.aexists(), - "prayer_eligible": prayer_is_eligible, }, )