In case when you have all router with lowercase letters.... and we add some router called "urlscraper", + uppercase tag like "URLScraper", this will cause inconsistrance between routers and tags arrays which cause mismatch between route and file name (generated based on tags names).
Python sorted tags in lexicographical (alphabetical) order, 'U', will comes before the lowercase letters and become on first element in the array.
In case of routes you using lower() function for tags and that cause inconsistence.
routers = sorted(
[re.sub(TITLE_PATTERN, '_', tag.strip()).lower() for tag in sorted_tags]
)
fix:
sorted_tags = sorted(set(all_tags), key=lambda x: x.lower())
then both arrays (routers and sorted_tags) will be sorted in sam way.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too