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

Set redirects for future deleted pages in the patterns reorg #1497

Merged
merged 14 commits into from
Jun 5, 2024
Prev Previous commit
Next Next commit
update type hint
arnaucasau committed Jun 5, 2024

Verified

This commit was signed with the committer’s verified signature.
morozov Sergei Morozov
commit 2db6b2b603e8d0c91d001c773662553487510017
2 changes: 1 addition & 1 deletion scripts/patterns-reorg/models.py
Original file line number Diff line number Diff line change
@@ -126,7 +126,7 @@ def add_redirect_to_dict(dict: dict[str, str], old_url: str, redirect_to: str)->


def determine_redirects(
entries: tuple[Entry, ...] | tuple[DeletedPage, ...], *, prefix: str = ""
entries: tuple[Entry | DeletedPage, ...], *, prefix: str = ""
) -> dict[str, str]:
result = {}
for entry in entries: