From 4026e9be8601ec63f9d1aa29a001ef6c3c3cd31d Mon Sep 17 00:00:00 2001 From: matthewswspence Date: Thu, 22 Aug 2024 15:47:21 -0500 Subject: [PATCH] minor changes --- src/registrar/management/commands/update_first_ready.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/registrar/management/commands/update_first_ready.py b/src/registrar/management/commands/update_first_ready.py index 4803b70f8..aaf04e2a7 100644 --- a/src/registrar/management/commands/update_first_ready.py +++ b/src/registrar/management/commands/update_first_ready.py @@ -16,7 +16,7 @@ class Command(BaseCommand, PopulateScriptTemplate): def update_record(self, record: Domain): """Defines how we update the first_ready field""" # update the first_ready value based on the creation date. - record.first_ready = record.created_at + record.first_ready = record.created_at.date() logger.info( f"{TerminalColors.OKCYAN}Updating {record} => first_ready: " f"{record.first_ready}{TerminalColors.OKCYAN}" @@ -24,4 +24,4 @@ class Command(BaseCommand, PopulateScriptTemplate): # check if a transition domain object for this domain name exists, and if so whether def should_update(self, record: Domain) -> bool: - return TransitionDomain.objects.filter(domain_name=record.name).exists() and record.first_ready != record.created_at \ No newline at end of file + return TransitionDomain.objects.filter(domain_name=record.name).exists() and record.first_ready != record.created_at.date() \ No newline at end of file