Catch `textmissing` in revision (#111)

1b2530ca84/includes/api/ApiQueryRevisionsBase.php (L451)
pull/475/head
yzqzss 1 year ago committed by GitHub
parent 3ee31859a2
commit 0ad5475b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -42,7 +42,9 @@ def makeXmlFromPage(page: dict, arvcontinue) -> str:
E.timestamp(rev["timestamp"]),]
# The text, user, comment, sha1 may be deleted/suppressed
if 'texthidden' in rev:
if 'texthidden' or 'textmissing' in rev:
if 'textmissing' in rev:
print("Warning: text missing in pageid %d revid %d" % (page['pageid'], rev['revid']))
revision.append(E.text(**{
'bytes': str(size),
'deleted': 'deleted',

Loading…
Cancel
Save