Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stats: Avoid referencing remote tables outside conditional.
Tim Abbott65557c458d24
diff --git a/analytics/views/stats.py b/analytics/views/stats.pyindex 0b60f1111b9..c6fe90ae2ea 100644--- a/analytics/views/stats.py+++ b/analytics/views/stats.py@@ -220,9 +220,9 @@ def get_chart_data(server: Optional["RemoteZulipServer"] = None,) -> HttpResponse:TableType = Union[- Type[RemoteInstallationCount],+ Type["RemoteInstallationCount"],Type[InstallationCount],- Type[RemoteRealmCount],+ Type["RemoteRealmCount"],Type[RealmCount],]if for_installation: