mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
exclude dead games when looking for open public rooms
This commit is contained in:
parent
58cd93ef6f
commit
ea292c7e2f
1 changed files with 2 additions and 1 deletions
|
@ -322,7 +322,8 @@ DBMgr::PublicRooms( int lang, int nPlayers, int* nNames, string& names )
|
|||
const char* fmt = "SELECT room, nTotal-sum_array(nPerDevice),"
|
||||
" round( extract( epoch from age('now', ctime)))"
|
||||
" FROM " GAMES_TABLE
|
||||
" WHERE pub = TRUE"
|
||||
" WHERE NOT dead"
|
||||
" AND pub = TRUE"
|
||||
" AND lang = %d"
|
||||
" AND nTotal>sum_array(nPerDevice)"
|
||||
" AND nTotal = %d";
|
||||
|
|
Loading…
Reference in a new issue