fix sortByLicense in test/theme_compare.py

This commit is contained in:
Trent Palmer 2022-09-19 10:25:39 -07:00
parent b2341f61ef
commit 33442ba410

View File

@ -34,7 +34,10 @@ def compare_theme(x, y, sort_key):
return compare_jk(x['date'], y['date'])
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:
return 0