mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Remove unnecessary locations from search criteria.
Currently, locations include none/current/extra/unstable. Since no package should be located in such an area, there's no point in including them in search criteria. The proper way to do this might be to delete the SQL table data relating to this, but this will suffice for now. Signed-off-by: tardo <tardo@nagi-fanboi.net>
This commit is contained in:
parent
8aec7ba941
commit
ab3837ab3a
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ function pkgCategories() {
|
||||||
function pkgLocations() {
|
function pkgLocations() {
|
||||||
$locs = array();
|
$locs = array();
|
||||||
$dbh = db_connect();
|
$dbh = db_connect();
|
||||||
$q = "SELECT * FROM PackageLocations WHERE ID != 1 ";
|
$q = "SELECT * FROM PackageLocations WHERE ID != 1 AND ID < 4 ";
|
||||||
$q.= "ORDER BY Location ASC";
|
$q.= "ORDER BY Location ASC";
|
||||||
$result = db_query($q, $dbh);
|
$result = db_query($q, $dbh);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue