mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Fix capitalization for extensions in whats-new.
This commit is contained in:
parent
3318a7ff85
commit
4f63e5eaf5
@ -29,7 +29,7 @@ class WhatsNewPagesModel(WelcomePagesModel):
|
|||||||
for filename in files:
|
for filename in files:
|
||||||
basename = os.path.basename(filename)
|
basename = os.path.basename(filename)
|
||||||
base, ext = os.path.splitext(basename)
|
base, ext = os.path.splitext(basename)
|
||||||
if ext not in include or not base.isdigit():
|
if ext.lower() not in include or not base.isdigit():
|
||||||
continue
|
continue
|
||||||
page_no = int(base)
|
page_no = int(base)
|
||||||
highest = max(highest, page_no)
|
highest = max(highest, page_no)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user