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

Add None to getattr in event pipeline #1293

Merged
merged 1 commit into from
Jul 28, 2020
Merged

Add None to getattr in event pipeline #1293

merged 1 commit into from
Jul 28, 2020

Conversation

EDsCODE
Copy link
Member

@EDsCODE EDsCODE commented Jul 28, 2020

Changes

Fixes this sentry error where getattr had no default return so the action matching event condition was failling

Checklist

  • All querysets/queries filter by Team (if applicable)
  • Backend tests (if applicable)
  • Cypress E2E tests (if applicable)

@timgl timgl temporarily deployed to posthog-event-action-co-ze8o8n July 28, 2020 18:34 Inactive
@@ -266,7 +266,7 @@ def query_retention(self, filters, team, start_entity: Optional[Entity] = None)

by_dates = {}
for row in data:
people = sorted(row.people, key=lambda p: scores[round(row.first_date, 1)][int(p)], reverse=True)
people = sorted(row.people, key=lambda p: scores[round(row.first_date, 1)][int(p)], reverse=True,)
Copy link
Member Author

Choose a reason for hiding this comment

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

black added the comma there

@EDsCODE EDsCODE requested a review from timgl July 28, 2020 18:34
@timgl timgl merged commit c281ec4 into master Jul 28, 2020
@timgl timgl deleted the event-action-condition branch July 28, 2020 18:41
@timgl
Copy link
Collaborator

timgl commented Jul 28, 2020

Appreciate you doing this!

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.

None yet

2 participants