diff --git a/app/flatpages/help/top_packages.md b/app/flatpages/help/top_packages.md index 747a6d70..a8fee4cb 100644 --- a/app/flatpages/help/top_packages.md +++ b/app/flatpages/help/top_packages.md @@ -19,7 +19,7 @@ score = avg_downloads + reviews_sum; ## Pseudo rolling average of downloads Each package adds 1 to `avg_downloads` for each unique download, -and then loses 5% (=1/20) of the value every day. +and then loses 6.66% (=1/15) of the value every day. This is called a [Frecency](https://en.wikipedia.org/wiki/Frecency) heuristic, a measure which combines both frequency and recency. diff --git a/app/tasks/pkgtasks.py b/app/tasks/pkgtasks.py index e30f0514..eba123b4 100644 --- a/app/tasks/pkgtasks.py +++ b/app/tasks/pkgtasks.py @@ -20,7 +20,7 @@ from app.tasks import celery @celery.task() def update_package_scores(): - Package.query.update({ "score_downloads": Package.score_downloads * 0.95 }) + Package.query.update({ "score_downloads": Package.score_downloads * 0.93 }) db.session.commit() for package in Package.query.all():