diff --git a/trips_ingest/tasks.py b/trips_ingest/tasks.py index cd1bcfc..561df61 100644 --- a/trips_ingest/tasks.py +++ b/trips_ingest/tasks.py @@ -24,10 +24,6 @@ def ingest_events(): def cleanup(): logger.info('Cleaning up') - yesterday = timezone.now() - timedelta(days=1) - # Delete locations that user has marked for deletion - ret = Location.objects.filter(deleted_at__isnull=False).filter(deleted_at__lte=yesterday).delete() - logger.info('Locations cleaned: %s' % str(ret)) # Delete expired leg locations ret = LegLocation.objects.expired(buffer_hours=48).delete() logger.info('Leg locations cleaned: %s' % str(ret))