popupdate: Avoid NULL entries in the popularity field
commit4c15f02ecb01e5d31ee575ead72c5b33db731032
authorLukas Fleischer <lfleischer@archlinux.org>
Tue, 1 Mar 2016 07:45:46 +0000 (1 08:45 +0100)
committerLukas Fleischer <lfleischer@archlinux.org>
Tue, 1 Mar 2016 17:27:23 +0000 (1 18:27 +0100)
tree2b0b2457a09271a18207e7d772fb1357733faf25
parentc23914fc1df309a6b1d85ec5387cfbef2161e655
popupdate: Avoid NULL entries in the popularity field

The popularity field is declared as "NOT NULL" in the database schema.
Fix the popularity update query such that it uses a popularity of 0.0
instead of NULL for packages with no votes.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
scripts/popupdate.py