mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 04:59:59 +02:00
Linter fixes
This commit is contained in:
parent
febd9566ce
commit
6aa5986441
2 changed files with 9 additions and 5 deletions
|
@ -30,7 +30,10 @@ class Command(BaseCommand, PopulateScriptTemplate):
|
|||
def custom_filter(self, records: BaseManager[Domain]) -> BaseManager[Domain]:
|
||||
to_include_pks = []
|
||||
for record in records:
|
||||
if TransitionDomain.objects.filter(domain_name=record.name).exists() and record.first_ready != record.created_at.date(): #noqa
|
||||
if (
|
||||
TransitionDomain.objects.filter(domain_name=record.name).exists()
|
||||
and record.first_ready != record.created_at.date()
|
||||
): # noqa
|
||||
to_include_pks.append(record.pk)
|
||||
|
||||
return records.filter(pk__in=to_include_pks)
|
||||
|
|
|
@ -187,6 +187,7 @@ class PopulateScriptTemplate(ABC):
|
|||
Applied to individual records *after* filter_conditions. True means"""
|
||||
return records
|
||||
|
||||
|
||||
class TerminalHelper:
|
||||
@staticmethod
|
||||
def log_script_run_summary(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue