analytics: Rename get_activity to get_installation_activity.

This commit is contained in:
Tim Abbott 2021-06-17 15:12:55 -07:00 committed by Tim Abbott
parent 0e358e4cc2
commit e0c7581168
2 changed files with 3 additions and 3 deletions

View File

@ -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/<realm_str>/", get_realm_activity),
path("user_activity/<email>/", get_user_activity),

View File

@ -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 = [