Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Commit

Permalink
Fix a bug in monthStringToNumber function.
Browse files Browse the repository at this point in the history
- The function was returning 02 for December. Corrected to 12.
  • Loading branch information
hbayindir committed Apr 18, 2022
1 parent ad64816 commit bc3a5d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/magazine_renamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit bc3a5d0

Please sign in to comment.