diff --git a/planet/__init__.py b/planet/__init__.py index 0d58fec..41fb5a0 100644 --- a/planet/__init__.py +++ b/planet/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -VERSION = (0, 7, 1, "f") # following PEP 386 +VERSION = (0, 7, 2, "f") # following PEP 386 def get_version(): version = "%s.%s" % (VERSION[0], VERSION[1]) diff --git a/planet/tasks.py b/planet/tasks.py index a104fe8..8c76fa5 100644 --- a/planet/tasks.py +++ b/planet/tasks.py @@ -205,7 +205,7 @@ def normalize_tag(tag): date_modified = datetime.fromtimestamp( time.mktime(date_modified)) except Exception: - date_modified = None + date_modified = planet_feed.last_modified or datetime.now() try: if len(Post.objects.filter(url=url, guid=guid)):