Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
zilencer: Fix audit log handling of missing 0s.
Tim Abbott731799b726ab
diff --git a/zilencer/models.py b/zilencer/models.pyindex e98216afabb..124294e86d0 100644--- a/zilencer/models.py+++ b/zilencer/models.py@@ -388,9 +388,9 @@ def get_remote_server_guest_and_non_guest_count(]for role_type in UserProfile.ROLE_TYPES:if role_type == UserProfile.ROLE_GUEST:- guest_count += humans_count_dict[str(role_type)]+ guest_count += humans_count_dict.get(str(role_type), 0)else:- non_guest_count += humans_count_dict[str(role_type)]+ non_guest_count += humans_count_dict.get(str(role_type), 0)return RemoteCustomerUserCount(non_guest_user_count=non_guest_count, guest_user_count=guest_count