The definitive list of the best of (consumer facing) open source.
Added another way to handle .0
Lucasfefb32644f0c
diff --git a/source/data/applications.json b/source/data/applications.jsonindex e6bb144..dce65e9 100644--- a/source/data/applications.json+++ b/source/data/applications.json@@ -7046,4 +7046,4 @@"homepage_url": null}]-}\ No newline at end of file+}diff --git a/source/scripts/generation/contents_generator.py b/source/scripts/generation/contents_generator.pyindex ba39371..5706176 100644--- a/source/scripts/generation/contents_generator.py+++ b/source/scripts/generation/contents_generator.py@@ -20,6 +20,24 @@ def format_stars(n):return formatted.replace('.0k', 'k')else:return str(n)++'''+def format_stars(n):+ if n >= 1_000_000:+ value = n / 1_000_000+ suffix = "M"+ elif n >= 1_000:+ value = n / 1_000+ suffix = "k"+ else:+ return str(n)++ # If it's a whole number, don't show decimal point+ if value == int(value):+ return f"{int(value)}{suffix}"+ else:+ return f"{value:.1f}{suffix}"+'''def generate_contents(platform="all"):