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