From 44f7e57ae1a2f1bbc20f475944e5065c1b9cefd6 Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Wed, 17 Oct 2018 15:15:56 +0200 Subject: [PATCH] Show story after changing state and remove print --- api/stories.py | 1 - commands/stories.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/api/stories.py b/api/stories.py index 1ed8d08..755c77f 100644 --- a/api/stories.py +++ b/api/stories.py @@ -13,7 +13,6 @@ def put_story(token: str, story_id: int, **kwargs) -> Dict[str, Any]: r = requests.put( f'https://www.pivotaltracker.com/services/v5/stories/{story_id}', headers={'X-TrackerToken': token}, json=kwargs) - print(r.text) return r.json() diff --git a/commands/stories.py b/commands/stories.py index 3bb2eda..327be19 100644 --- a/commands/stories.py +++ b/commands/stories.py @@ -180,14 +180,14 @@ def _set_story_state(story: str, state: str) -> None: @click.option('--scope', default='current') @click.option('--show-accepted/--hide-accepted', default=True) @click.option('--set-state', type=click.Choice([ - 'started', 'finished', 'delivered', 'rejected', 'accepted'])) + 'planned', 'started', 'finished', 'delivered', 'rejected', 'accepted'])) @require_login def stories(project: str, story: Optional[str], scope: str, show_accepted: bool, set_state: str) -> None: if story is not None: if set_state is not None: _set_story_state(story, set_state) - else: - stories_info(story) + + stories_info(story) else: _stories_current(project, scope, show_accepted)