mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Merge branch 'maint'
This commit is contained in:
commit
95140b880b
2 changed files with 1 additions and 2 deletions
|
@ -22,7 +22,7 @@ cur.execute("UPDATE PackageBases SET NumVotes = (SELECT COUNT(*) FROM " +
|
|||
"PackageVotes WHERE PackageVotes.PackageBaseID = PackageBases.ID)")
|
||||
|
||||
cur.execute("UPDATE PackageBases SET Popularity = (" +
|
||||
"SELECT SUM(POWER(0.98, (UNIX_TIMESTAMP() - VoteTS) / 86400)) " +
|
||||
"SELECT COALESCE(SUM(POWER(0.98, (UNIX_TIMESTAMP() - VoteTS) / 86400)), 0.0) " +
|
||||
"FROM PackageVotes WHERE PackageVotes.PackageBaseID = " +
|
||||
"PackageBases.ID AND NOT VoteTS IS NULL)")
|
||||
|
||||
|
|
|
@ -266,7 +266,6 @@ class AurJSON {
|
|||
"ON Licenses.ID = PackageLicenses.LicenseID " .
|
||||
"WHERE ${where_condition} " .
|
||||
"AND PackageBases.PackagerUID IS NOT NULL " .
|
||||
"GROUP BY Packages.ID " .
|
||||
"LIMIT $max_results";
|
||||
} elseif ($this->version >= 2) {
|
||||
if ($this->version == 2 || $this->version == 3) {
|
||||
|
|
Loading…
Add table
Reference in a new issue