def submitted_action(user, draft_slug, action_slug): """Returns true if the user complete the action.""" return action_slug in play_tester.get_submitted_actions(user, draft_slug)
def submitted_action(user, draft_slug, action_slug): """Returns true if the user complete the action.""" try: return action_slug in play_tester.get_submitted_actions(user, draft_slug) except Http404: return False