Event Timeline
Comment Actions
ignore = {'Copyright-problem.svg.png', 'Exclamation_flat_icon.svg.png', 'Exclamation_orange_flat_icon.svg.png', 'Logo_informations.svg.png', 'Nuvola_apps_important.svg.png', 'OOjs_UI_icon_notice-destructive.svg.png', 'OOjs_UI_icon_clear-destructive.svg.png', 'Stop_x_nuvola.svg.png', 'OOjs_UI_icon_clock-destructive.svg.png', 'OOjs_UI_icon_information-progressive.svg.png', 'OOjs_UI_icon_notice-warning.svg.png', 'MediaWiki-2020-logo.svg.png', 'MediaWiki.svg.png'}
checkme = []
interesting = {}
for what, tag in et.iterparse(file.seek(0) or (interesting := {}) or file):
if "board" in tag.tag:
if checkme:
interesting[tag.attrib["title"]] = checkme
checkme = []
tag.clear()
if tag.tag.endswith("revision") and tag.attrib["userid"] != "1125986":
if tag.text and "<figure " in tag.text and "mw:Image" in tag.text:
text = tag.text
count = tag.text.count("mw:Image")
for what in ignore:
count -= (text.count(what)+2)//3
if count > 0:
checkme.append((tag, count))