From 647a2a76bb91d1c7fe7b2f5c2d231caed229b033 Mon Sep 17 00:00:00 2001 From: Graham Dixon Date: Mon, 21 Feb 2022 19:02:12 +0000 Subject: [PATCH 1/2] fix: name 'request_key' is not defined --- app/dashboard/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dashboard/router.py b/app/dashboard/router.py index 05e3156f580..8dff7b0cb10 100644 --- a/app/dashboard/router.py +++ b/app/dashboard/router.py @@ -370,7 +370,7 @@ def get_queryset(self): # check for key in params and add to querySet via a case-insensitive contains for key in ['raw_data', 'bounty_owner_address', 'bounty_owner_github_username']: if key in param_keys: - queryset = add_param_to_querySet(request_key + '__icontains', queryset, self.request.query_params) + queryset = add_param_to_querySet(key + '__icontains', queryset, self.request.query_params) if 'reserved_for_user_handle' in param_keys: handle = self.request.query_params.get('reserved_for_user_handle', '') From 63f7e63e25490faa0392528a4312ae65475cdcd8 Mon Sep 17 00:00:00 2001 From: Graham Dixon Date: Wed, 23 Feb 2022 06:40:19 +0000 Subject: [PATCH 2/2] fix: ensures we dont drop brightID from services (#10189) --- app/dashboard/views.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/dashboard/views.py b/app/dashboard/views.py index df7179a9550..95b43cb38b5 100644 --- a/app/dashboard/views.py +++ b/app/dashboard/views.py @@ -2990,11 +2990,6 @@ def get_profile_tab(request, profile, tab, prev_context): } ] - # TODO: REMOVE - is_staff = request.user.is_staff if request.user else False - if not is_staff: - del services[1] - # pass as JSON in the context context['services'] = json.dumps(services) # Tentatively Coming Soon