Skip to content

Commit

Permalink
Breaking up line to avoid line length issue in Pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Harding committed May 2, 2019
1 parent 7bce39e commit a2eba84
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ckan/lib/helpers.py
Expand Up @@ -1833,7 +1833,10 @@ def add_url_param(alternative_url=None, controller=None, action=None,
instead.
'''

params_nopage = [(k, v) for k, v in request.params.items(multi=True) if k != 'page']
params_nopage = [
(k, v)for k, v in request.params.items(multi=True)
if k != 'page'
]
params = set(params_nopage)
if new_params:
params |= set(new_params.items())
Expand Down Expand Up @@ -1868,7 +1871,10 @@ def remove_url_param(key, value=None, replace=None, controller=None,
else:
keys = key

params_nopage = [(k, v) for k, v in request.params.items(multi=True) if k != 'page']
params_nopage = [
(k, v) for k, v in request.params.items(multi=True)
if k != 'page'
]
params = list(params_nopage)
if value:
params.remove((keys[0], value))
Expand Down

0 comments on commit a2eba84

Please sign in to comment.