Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move de edition title JSON files to Python code #512

Merged
merged 4 commits into from
Feb 22, 2024
Merged

Conversation

xxyzz
Copy link
Collaborator

@xxyzz xxyzz commented Feb 22, 2024

Issue #500

Fixes `TypeError: unsupported operand type(s) for +: 'NoneType' and
'str'` in page https://de.wiktionary.org/wiki/-ling

`parent_senseid` is `None` because `senseid` is `None`. Not sure how
the wikitext in page "-ling" should be parsed, so no test.
Some pages don't pass the second argument to template "Ü"
@xxyzz xxyzz merged commit efa31c5 into tatuylonen:master Feb 22, 2024
5 checks passed
@xxyzz xxyzz deleted the de branch February 22, 2024 08:30
@xxyzz
Copy link
Collaborator Author

xxyzz commented Feb 22, 2024

I'll update the en edition and remove the title variables in the config class tomorrow.

Only OTHER_SUBTITLES is used outside the extractor folder:

f"/{wxr.config.OTHER_SUBTITLES.get('translations')}"

this could be moved inside parse_page(), I think only en and zh editions have translation pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant