Hi folks, I need a little help with an error I get on commons:
WARNING: File 'File:Mausoleul Eroilor (1916 - 1919) de la Mărășești.JPG'
> contains missing revisions
I understand that the file has errors, what I don't understand is *why* it
is thrown when I don't get the page content when getting the page. My aim
here is to speedup the generator as much as possible, because most of the
pages will be skipped.
The generator code looks like this:
def build_generator(site, langOpt, namespace, preload):
> transGen = []
> for template in langOpt.get(_db).get('codeTemplate'):
> row_template = pywikibot.Page(
> site, '%s:%s' % (site.namespace(10), template)
> )
> transGen.append(
> row_template.getReferences(follow_redirects=False, content=False)
> )
> combined_gen = itertools.chain(*transGen)
> combined_gen = filter_unique(combined_gen, key=hash)
> pre_generator = pagegenerators.NamespaceFilterPageGenerator(
> combined_gen, frozenset([namespace]), site
> )
> return pre_generator
>
>
> Is there something in those filters that makes the site throw that error?
Can I simplify them to load as few things as possible?
Thanks,
Strainu