aboutsummaryrefslogtreecommitdiff
path: root/app/tasks/pkgtasks.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-01-18 01:16:33 +0000
committerrubenwardy <rw@rubenwardy.com>2020-01-18 01:16:33 +0000
commit6f230ee4b27445a4d487b9166660dbafaf2f7912 (patch)
tree10fddefc72b1c70b49c2eb916be1063bd6352562 /app/tasks/pkgtasks.py
parent311e0218affb9395a230b064596a60c9d748e5ef (diff)
downloadcheatdb-6f230ee4b27445a4d487b9166660dbafaf2f7912.tar.xz
Fix uploadPackageScores task
Diffstat (limited to 'app/tasks/pkgtasks.py')
-rw-r--r--app/tasks/pkgtasks.py4
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 })