diff --git a/bots/missingnotice.py b/bots/missingnotice.py index 31a5445..3827179 100644 --- a/bots/missingnotice.py +++ b/bots/missingnotice.py @@ -98,6 +98,23 @@ ON `cl_from` = `page_id` return links + def format_row( self, links ): + """ + Formats row for output on wikipage + + @param links Tuple of disc link and list of articles as returned by + self.treat_open_redfam() + @type links ( str, list(str*) ) + + @returns Formatet row text to add to page_content + @rtype str + """ + + return jogobot.config["red.missingnotice"]["row_format"].format( + disc=links[0], + links=jogobot.config["red.missingnotice"]["link_sep"].join( + links[1] ) ) + @classmethod def get_categorized_articles( cls ): """