From ebee57813c75e1c98b3106374c337e785a8e6963 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 5 Dec 2023 10:49:30 -0800 Subject: [PATCH] populate_billing_realms: Fix PLW0127 Self-assignment of variable. Signed-off-by: Anders Kaseorg --- zilencer/management/commands/populate_billing_realms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zilencer/management/commands/populate_billing_realms.py b/zilencer/management/commands/populate_billing_realms.py index c763319179..b99e79e753 100644 --- a/zilencer/management/commands/populate_billing_realms.py +++ b/zilencer/management/commands/populate_billing_realms.py @@ -304,7 +304,7 @@ def populate_remote_server(customer_profile: CustomerProfile) -> Dict[str, str]: if customer_profile.tier == CustomerPlan.TIER_SELF_HOSTED_LEGACY: # Create customer plan for these servers for temporary period. billing_session = RemoteServerBillingSession(remote_server) - renewal_date = renewal_date = datetime.datetime.strptime( + renewal_date = datetime.datetime.strptime( customer_profile.renewal_date, TIMESTAMP_FORMAT ).replace(tzinfo=datetime.timezone.utc) end_date = datetime.datetime.strptime(customer_profile.end_date, TIMESTAMP_FORMAT).replace(