Fix uploadPackageScores task

This commit is contained in:
rubenwardy 2020-01-18 01:16:33 +00:00
parent 311e0218af
commit 6f230ee4b2
1 changed files with 2 additions and 2 deletions

View File

@ -15,9 +15,9 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from app.models import Package, PackageRelease
from app.models import Package
from app.tasks import celery
@celery.task()
def updatePackageScores():
Package.query.update({ "score": PackageRelease.score * 0.8 })
Package.query.update({ "score": Package.score * 0.8 })