Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

populate_billing_realms: Fix PLW0127 Self-assignment of variable.

Anders Kaseorgebee57813c75
diff --git a/zilencer/management/commands/populate_billing_realms.py b/zilencer/management/commands/populate_billing_realms.py
index c7633191796..b99e79e7530 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(