Accept any string beginning with 'y' as confirmation for import_redirects command

Fixes #12931
pull/13089/head
Matt Westcott 2025-05-02 16:42:08 +01:00 zatwierdzone przez Sage Abdullah
rodzic 79c9f32889
commit 49f0b53733
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: EB1A33CC51CC0217
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -166,14 +166,14 @@ class Command(BaseCommand):
if ask:
answer = get_input(
"{}. Found {} -> {} Create? Y/n: ".format(
"{}. Found {} -> {} Create? y/N: ".format(
total,
from_link,
to_link,
)
)
if answer != "Y":
if not answer.lower().startswith("y"):
skipped += 1
continue
else: