From 62e6519a4ee1a1592ae3ce07c0d19e90b791c2d3 Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Mon, 8 Jul 2024 12:46:50 -0700 Subject: [PATCH] fix stats user count --- bots/models.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bots/models.py b/bots/models.py index 709e466c8..35a53a23d 100644 --- a/bots/models.py +++ b/bots/models.py @@ -817,7 +817,12 @@ class ConversationQuerySet(models.QuerySet): def get_unique_users(self) -> "ConversationQuerySet": """Get unique conversations""" return self.distinct( - "fb_page_id", "ig_account_id", "wa_phone_number", "slack_user_id" + "fb_page_id", + "ig_account_id", + "wa_phone_number", + "slack_user_id", + "twilio_phone_number", + "web_user_id", ) def to_df(self, tz=pytz.timezone(settings.TIME_ZONE)) -> "pd.DataFrame":