diff options
-rw-r--r-- | app/blueprints/packages/releases.py | 2 | ||||
-rw-r--r-- | app/flatpages/help/non_free.md | 2 | ||||
-rw-r--r-- | app/flatpages/help/top_packages.md | 8 | ||||
-rw-r--r-- | app/models.py | 3 |
4 files changed, 3 insertions, 12 deletions
diff --git a/app/blueprints/packages/releases.py b/app/blueprints/packages/releases.py index 669f4b1..b3a2f83 100644 --- a/app/blueprints/packages/releases.py +++ b/app/blueprints/packages/releases.py @@ -134,8 +134,6 @@ def download_release(package, id): set_key(key, "true") bonus = 1 - if not package.getIsFOSS(): - bonus *= 0.1 PackageRelease.query.filter_by(id=release.id).update({ "downloads": PackageRelease.downloads + 1 diff --git a/app/flatpages/help/non_free.md b/app/flatpages/help/non_free.md index fab9062..8eb1eb2 100644 --- a/app/flatpages/help/non_free.md +++ b/app/flatpages/help/non_free.md @@ -28,7 +28,7 @@ Limiting the promotion of problematic licenses helps Minetest avoid ending up in such a state. Licenses that prohibit redistribution or modification are completely banned from ContentDB and the Minetest forums. Other non-free licenses will be subject to limited promotion - they won't be shown by default in -the client, and their [score](/help/top_packages/) will receive a 10x penalty. +the client. Not providing full promotion on ContentDB, or not allowing your package at all, doesn't mean you can't make such content - it just means we're not going to help diff --git a/app/flatpages/help/top_packages.md b/app/flatpages/help/top_packages.md index 8f14090..da3f38a 100644 --- a/app/flatpages/help/top_packages.md +++ b/app/flatpages/help/top_packages.md @@ -7,10 +7,8 @@ In the future, a package will also gain score through reviews. ## Pseudo rolling average of downloads -Every package loses 5% of its score every day. - -An open source package will gain 1 score for each unique download, -whereas a non-free package will only gain 0.1 score. +Every package loses 5% of its score every day, and will gain 1 score for each +unique download. This metric aims to be roughly equivalent to the average downloads. @@ -27,8 +25,6 @@ This legacy heuristic is as follows: multiplier = 1 if no screenshot: multiplier *= 0.8 - if not foss: - multiplier *= 0.1 score = multiplier * (max(downloads, forum_score * 0.6) + forum_bonus) diff --git a/app/models.py b/app/models.py index 8f00c95..aeab995 100644 --- a/app/models.py +++ b/app/models.py @@ -714,9 +714,6 @@ class Package(db.Model): if self.getMainScreenshotURL() is None: self.score *= 0.8 - if not self.license.is_foss or not self.media_license.is_foss: - self.score *= 0.1 - class MetaPackage(db.Model): id = db.Column(db.Integer, primary_key=True) |