Browse Source

missingnotice: Implement format_row()

With this method, the links to redundance discussions and articles
missining notice are concatenated and formated

Issue #64 (https://git.golderweb.de/wiki/jogobot-red/issues/64)
develop
Jonathan Golder 6 years ago
parent
commit
9804db212f
  1. 17
      bots/missingnotice.py

17
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 ):
"""

Loading…
Cancel
Save