2 Commits

Author SHA1 Message Date
d37f4dbbd1 Merge branch 'release-0.2' 2018-10-21 20:05:17 +02:00
f235d2d0a6 Merge branch 'release-0.1.1' 2018-10-18 14:14:00 +02:00
2 changed files with 1 additions and 4 deletions

View File

@@ -25,9 +25,6 @@ python euroexchange.py
- Checks gnuplot exitcode and only upload chart if successfull created
- Update gnuplot script on commons file description page
* 0.2.1
- Compatibility issue with recent pywikibot fixed
## Bugs
[jogobot-euroexchange Issues](https://git.golderweb.de/wiki/jogobot-euroexchange/issues)

View File

@@ -276,7 +276,7 @@ class EuroExchangeBot( pywikibot.bot.BaseBot ):
last_update = self.current_job.filepage.latest_file_info.timestamp
# Get current time
now = pywikibot.Site().server_time()
now = pywikibot.Site().getcurrenttime()
# Calculate allowed delta (with tolerance)
delta = datetime.timedelta( days=self.current_job.freq, hours=-2 )