6 Commits
Author SHA1 Message Date
golderweb dfca5f1f33 countrylist: support dates without day 2022-05-29 16:54:48 +02:00
golderweb 0d62c249cd Hotfix 1.3.1 - Fix incompatibility with latest pwb 2021-08-08 14:31:27 +02:00
golderweb 6a6c6ea634 Merge branch 'release-1.3' 2018-10-05 12:27:03 +02:00
golderweb f9e4207651 Merge branch 'release-1.2' 2017-11-05 15:52:46 +01:00
golderweb 82662fc882 Merge branch 'release-1.1' 2017-11-05 15:41:45 +01:00
golderweb db6e7fd246 Merge branch 'release-1.0' 2017-11-05 15:36:16 +01:00
3 changed files with 10 additions and 4 deletions
+4 -1
View File
@@ -24,6 +24,9 @@ Those can be installed using pip and the _requirements.txt_ file provided with t
## Versions
* v1.3.1
- support dates without day (YYYY-mm)
* v1.3
- jogobot module not longer included
* v1.2
@@ -40,4 +43,4 @@ Those can be installed using pip and the _requirements.txt_ file provided with t
GPLv3+
## Author Information
Copyright 2018 Jonathan Golder <jonathan@golderweb.de>
Copyright 2021 Jonathan Golder <jonathan@golderweb.de>
+2 -2
View File
@@ -11,7 +11,7 @@
#
# 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
# it under the terms of the GNU General Public License as published by
@@ -256,7 +256,7 @@ def main(*args):
force_reload = True
else:
pass
genFactory.handleArg(arg)
genFactory.handle_arg(arg)
if not gen:
gen = genFactory.getCombinedGenerator()
+3
View File
@@ -239,8 +239,11 @@ class CountryList():
int( self._chartein_raw ) ).monday() )
# Complete date string present
else:
try:
self.chartein = datetime.strptime( self._chartein_raw,
"%Y-%m-%d" )
except ValueError:
self.chartein = datetime.strptime( self._chartein_raw, "%Y-%m" )
def get_chartein_value( self ):
"""