Skip to content

Instantly share code, notes, and snippets.

@paulwinex
Created November 24, 2015 07:49
Show Gist options
  • Save paulwinex/0ef0257ff589b47af88f to your computer and use it in GitHub Desktop.
Save paulwinex/0ef0257ff589b47af88f to your computer and use it in GitHub Desktop.
status= dict(
hold=0,
omni=1,
notstarted=2,
wip=3,
inprogress=4,
pending=5,
normal=6,
proposed=7,
approved=8,
completed=9,
clientapproved=10)
def get_status(st):
return session.query('Status')[st]
shot['status'] = get_status(status['notstarted'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment