set success on every run
...not just if we're adding a post
This commit is contained in:
parent
6d6f1ad787
commit
3c0544e5a1
|
@ -165,9 +165,9 @@ class Command(BaseCommand):
|
||||||
if newish:
|
if newish:
|
||||||
instance.announce()
|
instance.announce()
|
||||||
|
|
||||||
blog.set_success(
|
blog.set_success(
|
||||||
updateddate=date_to_tz_aware(article.updated_parsed)
|
updateddate=date_to_tz_aware(article.updated_parsed)
|
||||||
)
|
)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
blog.set_failing()
|
blog.set_failing()
|
||||||
|
@ -229,9 +229,9 @@ class Command(BaseCommand):
|
||||||
if newish:
|
if newish:
|
||||||
instance.announce()
|
instance.announce()
|
||||||
|
|
||||||
newsletter.set_success(
|
newsletter.set_success(
|
||||||
updateddate=date_to_tz_aware(edition.updated_parsed)
|
updateddate=date_to_tz_aware(edition.updated_parsed)
|
||||||
)
|
)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
newsletter.set_failing()
|
newsletter.set_failing()
|
||||||
|
|
Loading…
Reference in a new issue