11 Commits
v1.1 ... v1.3.2

7 changed files with 47 additions and 16 deletions

4
.gitmodules vendored
View File

@@ -1,4 +0,0 @@
[submodule "jogobot"]
path = jogobot
url = git@github.com:golderweb/wiki-jogobot-core.git
branch = test-v1

View File

@@ -6,16 +6,41 @@ of [User:JogoBot](https://de.wikipedia.org/wiki/Benutzer:JogoBot) on the
On [JogoBots wikipedia user page](https://de.wikipedia.org/wiki/Benutzer:JogoBot/Charts) a more detailed description can be found.
## Requirements
* Python 3.4+ (at least it is only tested with those)
* pywikibot-core 2.0
* [jogobot-core module](https://github.com/golderweb/wiki-jogobot-core) used as submodule
* [Isoweek module](https://pypi.python.org/pypi/isoweek)
* python3.4+
* pywikibot-core
The libraries above need to be installed and configured manualy considering [documentation of pywikibot-core](https://www.mediawiki.org/wiki/Manual:Pywikibot).
* mwparserfromhell
* isoweek
* [jogobot-core module](https://git.golderweb.de/wiki/jogobot)
Those can be installed using pip and the _requirements.txt_ file provided with this packet
pip install -r requirements.txt
## Versions
* v1.3.1
- support dates without day (YYYY-mm)
* v1.3
- jogobot module not longer included
* v1.2
- improved repo structure
* v1.1
- Cut Titel and Interpret on first linebreak
* v1.0
- first stable release
## Bugs
[wiki-jogobot-charts on fs.golderweb.de (de)](https://fs.golderweb.de/proj20)
[jogobot-charts Issues](https://git.golderweb.de/wiki/jogobot-charts/issues)
## License
GPLv3+
## Author Information
Copyright 2016 Jonathan Golder <jonathan@golderweb.de>
Copyright 2021 Jonathan Golder <jonathan@golderweb.de>

View File

@@ -11,7 +11,7 @@
#
# modified by:
#
# Copyright 2016 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()

View File

@@ -3,7 +3,7 @@
#
# countrylist.py
#
# Copyright 2016 Jonathan Golder <jonathan@golderweb.de>
# Copyright 2017 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
@@ -239,8 +239,11 @@ class CountryList():
int( self._chartein_raw ) ).monday() )
# Complete date string present
else:
self.chartein = datetime.strptime( self._chartein_raw,
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 ):
"""

Submodule jogobot deleted from 9131235b7b

8
requirements.txt Normal file
View File

@@ -0,0 +1,8 @@
# mwparserfromhell
mwparserfromhell
# isoweek
isoweek
# jogobot
git+https://git.golderweb.de/wiki/jogobot.git#egg=jogobot

View File

@@ -3,7 +3,7 @@
#
# summarypage.py
#
# Copyright 2016 Jonathan Golder <jonathan@golderweb.de>
# Copyright 2017 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