summaryrefslogtreecommitdiffstats
path: root/aurweb/scripts/popupdate.py
diff options
context:
space:
mode:
authorKevin Morris <kevr@0cost.org>2021-01-01 07:00:15 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2021-02-20 17:52:52 +0100
commita376020977085d08a49d427e6bf7c4266a7f6413 (patch)
treedc8279df67f0532b673138872800abd6e42592dc /aurweb/scripts/popupdate.py
parent3b7ebc7693933a2520c50fa89296a77dad020f47 (diff)
downloadaur-a376020977085d08a49d427e6bf7c4266a7f6413.tar.gz
aur-a376020977085d08a49d427e6bf7c4266a7f6413.tar.xz
add test_popupdate.py
We had no coverage over aurweb.scripts.popupdate. This test covers all of its functionality. Signed-off-by: Kevin Morris <kevr@0cost.org>
Diffstat (limited to 'aurweb/scripts/popupdate.py')
-rwxr-xr-xaurweb/scripts/popupdate.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/aurweb/scripts/popupdate.py b/aurweb/scripts/popupdate.py
index b64deedb..b1e70403 100755
--- a/aurweb/scripts/popupdate.py
+++ b/aurweb/scripts/popupdate.py
@@ -7,7 +7,6 @@ import aurweb.db
def main():
conn = aurweb.db.Connection()
-
conn.execute("UPDATE PackageBases SET NumVotes = (" +
"SELECT COUNT(*) FROM PackageVotes " +
"WHERE PackageVotes.PackageBaseID = PackageBases.ID)")