set success on every run

...not just if we're adding a post
This commit is contained in:
Hugh Rundle 2024-01-27 11:29:37 +11:00
parent 6d6f1ad787
commit 3c0544e5a1
Signed by: hugh
GPG key ID: A7E35779918253F9

View file

@ -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()