We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c698e1d commit 8f64b55Copy full SHA for 8f64b55
1 file changed
pgweb/news/management/commands/social_post.py
@@ -34,8 +34,6 @@ def handle(self, *args, **options):
34
raise CommandError("Failed to get advisory lock, existing social_post process stuck?")
35
36
articles = list(NewsArticle.objects.filter(modstate=ModerationState.APPROVED, date__gt=datetime.now() - timedelta(days=7)).exclude(postedto__has_keys=allprovidernames).order_by('date'))
37
- if not len(articles):
38
- return
39
40
for i, a in enumerate(articles):
41
if i != 0:
0 commit comments