mirror of
https://github.com/TrentSPalmer/hugo_themes_report.git
synced 2024-12-04 16:41:31 -08:00
fix sortByLicense in test/theme_compare.py
This commit is contained in:
parent
b2341f61ef
commit
33442ba410
@ -34,7 +34,10 @@ def compare_theme(x, y, sort_key):
|
|||||||
return compare_jk(x['date'], y['date'])
|
return compare_jk(x['date'], y['date'])
|
||||||
|
|
||||||
elif sort_key == 'sortByLicense':
|
elif sort_key == 'sortByLicense':
|
||||||
return compare_jk(y['license'].lower(), x['license'].lower())
|
return compare_jk(
|
||||||
|
y['license'].lower().replace("+", ".1"),
|
||||||
|
x['license'].lower().replace("+", ".1")
|
||||||
|
)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user