Commit d1df4903 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Hide fresh package bases from stats and results



Do not show package bases that have just been created in the package
update statistics or in the search results.

Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 9bb93fad
......@@ -563,7 +563,7 @@ function pkg_search_page($SID="") {
$q_from_extra = "";
}
$q_where = "WHERE 1 = 1 ";
$q_where = 'WHERE PackageBases.PackagerUID IS NOT NULL ';
/*
* TODO: Possibly do string matching on category to make request
* variable values more sensible.
......
......@@ -14,6 +14,7 @@ function updates_table() {
$q = 'SELECT Packages.Name, Version, ModifiedTS, SubmittedTS ';
$q.= 'FROM Packages INNER JOIN PackageBases ON ';
$q.= 'Packages.PackageBaseID = PackageBases.ID ';
$q.= 'WHERE PackageBases.PackagerUID IS NOT NULL ';
$q.= 'ORDER BY ModifiedTS DESC LIMIT 10';
$result = $dbh->query($q);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment