def from_path(self, path):

        (ymd, slug) = path.strip('/').rsplit('/', 1)

        start_date = datetime.datetime.strptime(ymd, "%Y/%m/%d")
        end_date = start_date + datetime.timedelta(minutes=1) - datetime.timedelta(days=1)

        params = {
            'post_date__range': (start_date, end_date),
            'slug': slug,
        }

        try:
            return self.published().get(**params)
        except ObjectDoesNotExist:
            pass  # fall through to return None
dataset/ETHPy150Open sunlightlabs/django-wordpress/wordpress/models.py/PostManager.from_path/swapped operands of `-`