Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Mar 1, 2022
2 parents 5c5df5a + 63f7e63 commit 24a3d14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion app/dashboard/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', '')
Expand Down
5 changes: 0 additions & 5 deletions app/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24a3d14

Please sign in to comment.