Skip to content

Fix sorting willplay:yes by playtime #1280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions www/searchutil.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ function doSearch($db, $term, $searchType, $sortby, $limit, $browse, $count_all_
}

$not = (preg_match("/^y.*/i", $txt) ? "" : "not");
$expr = "gameid $not in (select gameid from playedgames where userid = '$curuser')";
$expr = "games.id $not in (select gameid from playedgames where userid = '$curuser')";
break;

case 'willplay':
Expand All @@ -666,7 +666,7 @@ function doSearch($db, $term, $searchType, $sortby, $limit, $browse, $count_all_
}

$not = (preg_match("/^y.*/i", $txt) ? "" : "not");
$expr = "gameid $not in (select gameid from wishlists where userid = '$curuser')";
$expr = "games.id $not in (select gameid from wishlists where userid = '$curuser')";
break;

case 'wontplay':
Expand All @@ -676,7 +676,7 @@ function doSearch($db, $term, $searchType, $sortby, $limit, $browse, $count_all_
}

$not = (preg_match("/^y.*/i", $txt) ? "" : "not");
$expr = "gameid $not in (select gameid from unwishlists where userid = '$curuser')";
$expr = "games.id $not in (select gameid from unwishlists where userid = '$curuser')";
break;


Expand All @@ -687,7 +687,7 @@ function doSearch($db, $term, $searchType, $sortby, $limit, $browse, $count_all_
}

$not = (preg_match("/^y.*/i", $txt) ? "" : "not");
$expr = "gameid $not in (select gameid from reviews where review is not null and userid = '$curuser')";
$expr = "games.id $not in (select gameid from reviews where review is not null and userid = '$curuser')";
break;

case 'rated':
Expand All @@ -697,7 +697,7 @@ function doSearch($db, $term, $searchType, $sortby, $limit, $browse, $count_all_
}

$not = (preg_match("/^y.*/i", $txt) ? "" : "not");
$expr = "gameid $not in (select gameid from reviews where rating is not null and userid = '$curuser')";
$expr = "games.id $not in (select gameid from reviews where rating is not null and userid = '$curuser')";
break;

case 'author':
Expand Down