Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/fixing unique users count #44

Merged
merged 4 commits into from
Feb 23, 2024
Merged

Conversation

pritamps
Copy link
Contributor

No description provided.

pipeline.append(
{
"$group": {
"_id": None,
"totalSessions": {"$sum": "$uniqueSessions"},
"totalUniqueUsers": {"$push": "$_id.user_id"},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is user_id here ? user_id doesn't exist after previous pipeline executions na? i ran this code and totalUniqueUsers coming as an empty array

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes maybe I can remove this. It's remnant from some previous attempts

Copy link
Collaborator

@suryabulusu suryabulusu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pritamps pritamps merged commit 20848e2 into main Feb 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants