2 Commits
v1.3 ... master

3 changed files with 10 additions and 4 deletions

View File

@@ -24,6 +24,9 @@ Those can be installed using pip and the _requirements.txt_ file provided with t
## Versions ## Versions
* v1.3.1
- support dates without day (YYYY-mm)
* v1.3 * v1.3
- jogobot module not longer included - jogobot module not longer included
* v1.2 * v1.2
@@ -40,4 +43,4 @@ Those can be installed using pip and the _requirements.txt_ file provided with t
GPLv3+ GPLv3+
## Author Information ## Author Information
Copyright 2018 Jonathan Golder <jonathan@golderweb.de> Copyright 2021 Jonathan Golder <jonathan@golderweb.de>

View File

@@ -11,7 +11,7 @@
# #
# modified by: # modified by:
# #
# Copyright 2017 Jonathan Golder <jonathan@golderweb.de> # Copyright 2021 Jonathan Golder <jonathan@golderweb.de>
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@@ -256,7 +256,7 @@ def main(*args):
force_reload = True force_reload = True
else: else:
pass pass
genFactory.handleArg(arg) genFactory.handle_arg(arg)
if not gen: if not gen:
gen = genFactory.getCombinedGenerator() gen = genFactory.getCombinedGenerator()

View File

@@ -239,8 +239,11 @@ class CountryList():
int( self._chartein_raw ) ).monday() ) int( self._chartein_raw ) ).monday() )
# Complete date string present # Complete date string present
else: else:
self.chartein = datetime.strptime( self._chartein_raw, try:
self.chartein = datetime.strptime( self._chartein_raw,
"%Y-%m-%d" ) "%Y-%m-%d" )
except ValueError:
self.chartein = datetime.strptime( self._chartein_raw, "%Y-%m" )
def get_chartein_value( self ): def get_chartein_value( self ):
""" """