From e0c7581168b21e792e63ca269262147995b2a996 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 17 Jun 2021 15:12:55 -0700 Subject: [PATCH] analytics: Rename get_activity to get_installation_activity. --- analytics/urls.py | 4 ++-- analytics/views/installation_activity.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/analytics/urls.py b/analytics/urls.py index 24a71de5dc..affedf048b 100644 --- a/analytics/urls.py +++ b/analytics/urls.py @@ -1,7 +1,7 @@ from django.conf.urls import include from django.urls import path -from analytics.views.installation_activity import get_activity +from analytics.views.installation_activity import get_installation_activity from analytics.views.realm_activity import get_realm_activity from analytics.views.stats import ( get_chart_data, @@ -21,7 +21,7 @@ from zerver.lib.rest import rest_path i18n_urlpatterns = [ # Server admin (user_profile.is_staff) visible stats pages - path("activity", get_activity), + path("activity", get_installation_activity), path("activity/support", support, name="support"), path("realm_activity//", get_realm_activity), path("user_activity//", get_user_activity), diff --git a/analytics/views/installation_activity.py b/analytics/views/installation_activity.py index 75154658a6..dc0e8a5055 100644 --- a/analytics/views/installation_activity.py +++ b/analytics/views/installation_activity.py @@ -595,7 +595,7 @@ def ad_hoc_queries() -> List[Dict[str, str]]: @require_server_admin @has_request_variables -def get_activity(request: HttpRequest) -> HttpResponse: +def get_installation_activity(request: HttpRequest) -> HttpResponse: duration_content, realm_minutes = user_activity_intervals() counts_content: str = realm_summary_table(realm_minutes) data = [