Skip to content

Commit

Permalink
Fix last_modified value
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandar Jovanov committed Oct 17, 2017
1 parent e226dbd commit 4216d31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckanext/tayside/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ def _check_outdated_datasets(self):
for resource in resources:
last_modified = resource.get('last_modified')

if resource.get('url_type') == 'upload' and\
last_modified is not None:
if resource.get('url_type') == 'upload':
if last_modified is None:
last_modified = resource.get('created')

days_diff = self._days_between(
current_time, last_modified
Expand Down

0 comments on commit 4216d31

Please sign in to comment.