Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stripe: Use get_remote_server_guest...count for billing licenses count.
Prakhar Pratyushbd99e379105b
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.pyindex c6d1529bbf2..4d06fb1a45a 100644--- a/corporate/lib/stripe.py+++ b/corporate/lib/stripe.py@@ -62,6 +62,7 @@ from zilencer.models import (RemoteRealmBillingUser,RemoteZulipServer,RemoteZulipServerAuditLog,+ get_remote_server_guest_and_non_guest_count,)from zproject.config import get_secret@@ -3113,8 +3114,8 @@ class RemoteServerBillingSession(BillingSession): # nocoverage@overridedef current_count_for_billed_licenses(self) -> int:- # TODO: Do the proper calculation here.- return 10+ remote_server_counts = get_remote_server_guest_and_non_guest_count(self.remote_server.id)+ return remote_server_counts.non_guest_user_count + remote_server_counts.guest_user_count@overridedef get_audit_log_event(self, event_type: AuditLogEventType) -> int: