|
|
@ -34,6 +34,7 @@ import pywikibot.specialbots |
|
|
|
import jogobot |
|
|
|
|
|
|
|
from config import Config |
|
|
|
from descpage import DescPageBot |
|
|
|
|
|
|
|
class EuroExchangeBotJob(): |
|
|
|
""" |
|
|
@ -59,6 +60,9 @@ class EuroExchangeBot( pywikibot.bot.BaseBot ): |
|
|
|
# Init working directory |
|
|
|
self.init_wdir() |
|
|
|
|
|
|
|
# Prepare DescPage editing bot |
|
|
|
self.descpagebot = DescPageBot( **kwargs ) |
|
|
|
|
|
|
|
super().__init__(**kwargs) |
|
|
|
|
|
|
|
def run(self): |
|
|
@ -257,6 +261,9 @@ class EuroExchangeBot( pywikibot.bot.BaseBot ): |
|
|
|
jogobot.output( "No update needed for Job {}".format( |
|
|
|
self.current_job.image) ) |
|
|
|
|
|
|
|
# Update file description page |
|
|
|
self.descpagebot.treat_job( self.current_job ) |
|
|
|
|
|
|
|
def image_update_needed( self ): |
|
|
|
""" |
|
|
|
Checks weather image update intervall is reached. |
|
|
|