Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
dfca5f1f33
|
|||
| 0d62c249cd | |||
| 6a6c6ea634 | |||
| 7bc4f546f8 | |||
| 3fb86abac5 | |||
| 871cbccc72 | |||
| e61408f877 | |||
| e6ef20f0a4 |
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +0,0 @@
|
|||||||
[submodule "jogobot"]
|
|
||||||
path = jogobot
|
|
||||||
url = ../jogobot
|
|
||||||
29
README.md
29
README.md
@@ -6,12 +6,29 @@ 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.
|
On [JogoBots wikipedia user page](https://de.wikipedia.org/wiki/Benutzer:JogoBot/Charts) a more detailed description can be found.
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
* Python 3.4+ (at least it is only tested with those)
|
* python3.4+
|
||||||
* 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)
|
* 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
|
## Versions
|
||||||
|
|
||||||
|
* v1.3.1
|
||||||
|
- support dates without day (YYYY-mm)
|
||||||
|
|
||||||
|
* v1.3
|
||||||
|
- jogobot module not longer included
|
||||||
* v1.2
|
* v1.2
|
||||||
- improved repo structure
|
- improved repo structure
|
||||||
* v1.1
|
* v1.1
|
||||||
@@ -20,10 +37,10 @@ On [JogoBots wikipedia user page](https://de.wikipedia.org/wiki/Benutzer:JogoBot
|
|||||||
- first stable release
|
- first stable release
|
||||||
|
|
||||||
## Bugs
|
## 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
|
## License
|
||||||
GPLv3+
|
GPLv3+
|
||||||
|
|
||||||
## Author Information
|
## Author Information
|
||||||
Copyright 2017 Jonathan Golder <jonathan@golderweb.de>
|
Copyright 2021 Jonathan Golder <jonathan@golderweb.de>
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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 ):
|
||||||
"""
|
"""
|
||||||
|
|||||||
1
jogobot
1
jogobot
Submodule jogobot deleted from d69d873624
8
requirements.txt
Normal file
8
requirements.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# mwparserfromhell
|
||||||
|
mwparserfromhell
|
||||||
|
|
||||||
|
# isoweek
|
||||||
|
isoweek
|
||||||
|
|
||||||
|
# jogobot
|
||||||
|
git+https://git.golderweb.de/wiki/jogobot.git#egg=jogobot
|
||||||
Reference in New Issue
Block a user