Browse Source

euroexchange: Fix removed APISite.getcurrenttime()

Pywikibot removed method  APISite.getcurrenttime replaced with
APISite.server_time
develop
Jonathan Golder 3 months ago
parent
commit
eed989fd2a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      euroexchange/euroexchange.py

+ 1
- 1
euroexchange/euroexchange.py 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().getcurrenttime()
now = pywikibot.Site().server_time()
# Calculate allowed delta (with tolerance)
delta = datetime.timedelta( days=self.current_job.freq, hours=-2 )


Loading…
Cancel
Save