Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Email paid-apps devs with more statuses (bug 902065) #971

Merged
merged 1 commit into from
Aug 8, 2013
Merged

Email paid-apps devs with more statuses (bug 902065) #971

merged 1 commit into from
Aug 8, 2013

Conversation

davidbgk
Copy link
Contributor

@davidbgk davidbgk commented Aug 7, 2013

No description provided.

@andymckay
Copy link
Contributor

r+

ids = (Webapp.objects.filter(premium_type__in=payment_types,
status__in=amo.WEBAPPS_APPROVED_STATUSES)
status__in=statuses)
Copy link
Contributor

Choose a reason for hiding this comment

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

can we just do .exclude(status=amo.STATUS_DISABLED).exclude(disabled_by_user=True)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cvan: a whitelist looks more robust than a blacklist in that case

Equivalent to STATUS_UNREVIEWED, STATUS_PENDING, STATUS_NOMINATED,
STATUS_PURGATORY, STATUS_PUBLIC, STATUS_PUBLIC_WAITING
cvan added a commit that referenced this pull request Aug 8, 2013
Email paid-apps devs with more statuses (bug 902065)
@cvan cvan merged commit 9ea4ba6 into mozilla:master Aug 8, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants