1 from django.core.management.base import BaseCommand
2 from django.db.models import F
3 from sources.models import Source
6 class Command(BaseCommand):
7 def handle(self, **options):
8 for s in Source.objects.exclude(
10 ).exclude(processed_at__gt=F('modified_at')).order_by('modified_at'):
14 except Exception as e: