mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 11:47:28 +01:00
Fix uploadPackageScores task
This commit is contained in:
parent
311e0218af
commit
6f230ee4b2
@ -15,9 +15,9 @@
|
|||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# 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
|
from app.tasks import celery
|
||||||
|
|
||||||
@celery.task()
|
@celery.task()
|
||||||
def updatePackageScores():
|
def updatePackageScores():
|
||||||
Package.query.update({ "score": PackageRelease.score * 0.8 })
|
Package.query.update({ "score": Package.score * 0.8 })
|
||||||
|
Loading…
Reference in New Issue
Block a user