From 2462a57fffb016612ea7980dc64957aac6794ef0 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Thu, 29 Nov 2018 16:42:29 +0100 Subject: [PATCH 1/2] Added lower() to issue names --- scripts/todo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/todo.py b/scripts/todo.py index 9d7fa46c8..11013a2a4 100644 --- a/scripts/todo.py +++ b/scripts/todo.py @@ -17,7 +17,7 @@ def main(): "https://api.github.com/repos/python/python-docs-fr/issues" ).json() reservations = { - issue["title"].split()[-1]: issue["user"]["login"] for issue in issues + issue["title"].split()[-1].lower(): issue["user"]["login"] for issue in issues } po_files = [file for file in Path(".").glob("**/*.po") if ".git/" not in str(file)] From f7448fca5fb636dd897633e095ae663b1f3fd9c8 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Thu, 29 Nov 2018 16:44:41 +0100 Subject: [PATCH 2/2] Added lower() to po files --- scripts/todo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/todo.py b/scripts/todo.py index 11013a2a4..621812557 100644 --- a/scripts/todo.py +++ b/scripts/todo.py @@ -46,7 +46,7 @@ def main(): ) + ( f", réservé par {reservations[str(po_file)]}" - if str(po_file) in reservations + if str(po_file).lower() in reservations else "" ) )