Skip to content

Commit

Permalink
[#2856] Tweaks after review
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Mar 30, 2016
1 parent e671925 commit b5a0aca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ckanext/datapusher/logic/action.py
Expand Up @@ -207,7 +207,7 @@ def datapusher_hook(context, data_dict):
resource_dict['last_modified'])
task_created_datetime = parse_date(metadata['task_created'])
if last_modified_datetime > task_created_datetime:
log.debug('Uploaded file more recent: {0} > {0}'.format(
log.debug('Uploaded file more recent: {0} > {1}'.format(
last_modified_datetime, task_created_datetime))
resubmit = True
except ValueError:
Expand All @@ -224,10 +224,10 @@ def datapusher_hook(context, data_dict):
p.toolkit.get_action('task_status_update')(context, task)

if resubmit:
log.debug('Resource {0} has been modified, '.format(res_id)
+ 'resubmitting to DataPusher')
p.toolkit.get_action('datapusher_submit')(context,
{'resource_id': res_id})
log.debug('Resource {0} has been modified, '
'resubmitting to DataPusher'.format(res_id))
p.toolkit.get_action('datapusher_submit')(
context, {'resource_id': res_id})


def datapusher_status(context, data_dict):
Expand Down

0 comments on commit b5a0aca

Please sign in to comment.