Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Jun 21, 2024
1 parent bc7ab3d commit e07223e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions project/visu/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ def periodic_source_refresh_report(*args, **kwargs):
impacted_sources = Source.objects.filter(
last_refresh__gte=last_report,
report__isnull=False,
).select_related('report')
impacted_sources = impacted_sources.exclude(report__status__in=level_exclude.get(mail_level, []))
).select_related("report")
impacted_sources = impacted_sources.exclude(
report__status__in=level_exclude.get(mail_level, [])
)
impacted_sources_success = impacted_sources.filter(
report__status=0,
)
Expand Down

0 comments on commit e07223e

Please sign in to comment.