Skip to content

Commit

Permalink
[#2856] Move variable to correct scope
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Mar 30, 2016
1 parent 329ff20 commit 42f96c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckanext/datapusher/logic/action.py
Expand Up @@ -176,6 +176,9 @@ def datapusher_hook(context, data_dict):

task['state'] = status
task['last_updated'] = str(datetime.datetime.now())

resubmit = False

if status == 'complete':
# Create default views for resource if necessary (only the ones that
# require data to be in the DataStore)
Expand All @@ -196,7 +199,6 @@ def datapusher_hook(context, data_dict):
'create_datastore_views': True,
})

resubmit = False
# Check if the uploaded file has been modified in the meantime
if (resource_dict.get('last_modified') and
metadata.get('task_created')):
Expand Down

0 comments on commit 42f96c2

Please sign in to comment.