Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelboca committed Mar 28, 2023
1 parent b6c87f4 commit 5407168
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ckanext/harvest/utils.py
Expand Up @@ -686,12 +686,8 @@ def clear_view(id):
def delete_view(id):
try:
context = {'model': model, 'user': tk.c.user}

context['clear_source'] = tk.request.args.get('clear',
'').lower() in (
u'true',
u'1',
)
clear = tk.request.args.get('clear','').lower()
context['clear_source'] = clear in ('true','1',)

tk.get_action('harvest_source_delete')(context, {'id': id})

Expand Down

0 comments on commit 5407168

Please sign in to comment.