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.

activity: Rename amount variables to arr.

Vishnu KSd32de76c23cc
diff --git a/analytics/views.py b/analytics/views.py
index 4b2fbefd338..874759bcf7a 100644
--- a/analytics/views.py
+++ b/analytics/views.py
@@ -760,7 +760,7 @@ def realm_summary_table(realm_minutes: Dict[str, float]) -> str:
row["history"] = ""
# estimate annual subscription revenue
- total_amount = 0
+ total_arr = 0
if settings.BILLING_ENABLED:
estimated_arrs = estimate_annual_recurring_revenue_by_realm()
realms_to_default_discount = get_realms_to_default_discount_dict()
@@ -771,7 +771,7 @@ def realm_summary_table(realm_minutes: Dict[str, float]) -> str:
string_id = row["string_id"]
if string_id in estimated_arrs:
- row["amount"] = estimated_arrs[string_id]
+ row["arr"] = estimated_arrs[string_id]
if row["plan_type"] == Realm.STANDARD:
row["effective_rate"] = 100 - int(realms_to_default_discount.get(string_id, 0))
@@ -782,7 +782,7 @@ def realm_summary_table(realm_minutes: Dict[str, float]) -> str:
else:
row["effective_rate"] = ""
- total_amount += sum(estimated_arrs.values())
+ total_arr += sum(estimated_arrs.values())
# augment data with realm_minutes
total_hours = 0.0
@@ -822,8 +822,8 @@ def realm_summary_table(realm_minutes: Dict[str, float]) -> str:
total_row = dict(
string_id="Total",
plan_type_string="",
- amount=total_amount,
effective_rate="",
+ arr=total_arr,
stats_link="",
date_created_day="",
realm_owner_emails="",
diff --git a/templates/analytics/realm_summary_table.html b/templates/analytics/realm_summary_table.html
index 02e19841a87..9454e554f8d 100644
--- a/templates/analytics/realm_summary_table.html
+++ b/templates/analytics/realm_summary_table.html
@@ -59,8 +59,8 @@
</td>
<td class="number">
- {% if row.amount %}
- {{ row.amount }}
+ {% if row.arr %}
+ {{ row.arr }}
{% endif %}
</td>