move set_success to correct place in check_feeds

fixes #2
This commit is contained in:
Hugh Rundle 2024-03-23 16:01:52 +11:00
parent eff5463e84
commit 920d8833c1
Signed by: hugh
GPG key ID: A7E35779918253F9

View file

@ -14,6 +14,8 @@ from django.utils import timezone as django_timezone
from blogs import models from blogs import models
from django.forms.models import model_to_dict
agent = "AusGLAMR/1.0 +https://ausglamr.newcardigan.org" agent = "AusGLAMR/1.0 +https://ausglamr.newcardigan.org"
@ -165,10 +167,9 @@ class Command(BaseCommand):
newish = instance.pubdate > cutoff newish = instance.pubdate > cutoff
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()