Browse Source

euroexchange: Fix removed APISite.getcurrenttime()

Pywikibot removed method  APISite.getcurrenttime replaced with
APISite.server_time
develop
Jonathan Golder 11 months ago
parent
commit
eed989fd2a
  1. 2
      euroexchange/euroexchange.py

2
euroexchange/euroexchange.py

@ -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