From 6e5358e6a119ef7c699ae51b974a092ba4807b3c Mon Sep 17 00:00:00 2001 From: Leszek Godlewski Date: Wed, 18 Jan 2017 13:34:24 +0100 Subject: [PATCH] Fix inability to commit This was probably a leftover from the version we used internally. Credit goes to @nadirlc for finding it. --- trello2redmine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trello2redmine.py b/trello2redmine.py index bf27de9..d309e5d 100644 --- a/trello2redmine.py +++ b/trello2redmine.py @@ -17,7 +17,7 @@ if len(sys.argv) > 3 or (len(sys.argv) == 2 and sys.argv[1] == '-h'): sys.exit(0) # If a dry run, JSON is printed instead of submitted to Redmine. -dry_run = len(sys.argv) < 3 or sys.argv[2] != '-c' +dry_run = len(sys.argv) < 2 or sys.argv[2] != '-c' if dry_run: print('Making a dry run! Re-run with -c to commit the import into Redmine.') else: @@ -236,4 +236,4 @@ for c in board["cards"]: else: print(str(result)) -print('Done!') \ No newline at end of file +print('Done!') -- 2.43.0