diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-01-18 01:16:33 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2020-01-18 01:16:33 +0000 |
commit | 6f230ee4b27445a4d487b9166660dbafaf2f7912 (patch) | |
tree | 10fddefc72b1c70b49c2eb916be1063bd6352562 /app/tasks/pkgtasks.py | |
parent | 311e0218affb9395a230b064596a60c9d748e5ef (diff) | |
download | cheatdb-6f230ee4b27445a4d487b9166660dbafaf2f7912.tar.xz |
Fix uploadPackageScores task
Diffstat (limited to 'app/tasks/pkgtasks.py')
-rw-r--r-- | app/tasks/pkgtasks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/tasks/pkgtasks.py b/app/tasks/pkgtasks.py index 8ff5836..d36803c 100644 --- a/app/tasks/pkgtasks.py +++ b/app/tasks/pkgtasks.py @@ -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 }) |