Skip to content

Instantly share code, notes, and snippets.

@briandailey
Created August 5, 2015 15:29
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 briandailey/1b2cf6a496066ffa854f to your computer and use it in GitHub Desktop.
Save briandailey/1b2cf6a496066ffa854f to your computer and use it in GitHub Desktop.
or_list = []
for foo in bar:
or_list.append(and_([foo=bar, foo2=bar2]))
query.filter(or_(or_list))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment