From bc3a5d0b1632c7cbe5f6d80940770a874fecdc0c Mon Sep 17 00:00:00 2001 From: Hakan Bayindir Date: Mon, 18 Apr 2022 09:20:49 +0300 Subject: [PATCH] Fix a bug in monthStringToNumber function. - The function was returning 02 for December. Corrected to 12. --- src/magazine_renamer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/magazine_renamer.py b/src/magazine_renamer.py index 5f5240b..d95cc36 100755 --- a/src/magazine_renamer.py +++ b/src/magazine_renamer.py @@ -75,7 +75,7 @@ def monthStringToNumber(monthString): return '11' elif monthString.casefold() == 'dec'.casefold() or monthString.casefold() == 'december'.casefold(): - return '02' + return '12' else: return '00' @@ -106,7 +106,7 @@ def convertEditionString(editionString): verbosityGroup.add_argument ('-q', '--quiet', help='Do not print anything to console (overrides verbose).', action='store_true', default=False) # Version always comes last. - argumentParser.add_argument ('-V', '--version', help='Print ' + argumentParser.prog + ' version and exit.', action='version', version=argumentParser.prog + ' version 0.0.1') + argumentParser.add_argument ('-V', '--version', help='Print ' + argumentParser.prog + ' version and exit.', action='version', version=argumentParser.prog + ' version 0.0.2') arguments = argumentParser.parse_args()