mirror of
				https://github.com/TrentSPalmer/hugo_themes_report.git
				synced 2025-10-31 04:01:43 -07:00 
			
		
		
		
	fix sortByLicense in test/theme_compare.py
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user