Skip to content

Instantly share code, notes, and snippets.

@almet
Created April 13, 2015 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almet/d8ad487f00ee9a526afe to your computer and use it in GitHub Desktop.
Save almet/d8ad487f00ee9a526afe to your computer and use it in GitHub Desktop.
print ', '.join(
set([p.contact_email for p in Project.query.all()
if p.get_bills().count() > 10
and (now - p.get_bills().first().date) < datetime.timedelta(weeks=4*6)])
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment