Skip to content

Commit

Permalink
fix stats user count
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderGi committed Jul 8, 2024
1 parent 65c537a commit 62e6519
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bots/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 62e6519

Please sign in to comment.