Skip to content

Instantly share code, notes, and snippets.

@rbrady
Created March 9, 2017 13:49
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 rbrady/fba8e76cdda48fa2a12748dd295f3137 to your computer and use it in GitHub Desktop.
Save rbrady/fba8e76cdda48fa2a12748dd295f3137 to your computer and use it in GitHub Desktop.
Board Query Snippet
# check for board existence
board = [b for b in trello_api.list_boards() if b.name == board_name][0]
# if no board, print error and exit
if not board:
click.echo("Trello board not found!")
sys.exit(1)
# create board context
context = {'board': board}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment