forked from AFPy/python-docs-fr
Added lower() to issue names - todo.py (#440)
* Added lower() to issue names * Added lower() to po files
This commit is contained in:
parent
25ae2894e2
commit
c6668da078
|
@ -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)]
|
||||
|
@ -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 ""
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user