mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
tweak column display
This commit is contained in:
parent
b840f7d708
commit
cd31cd432a
1 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ while [ $# -gt 0 ]; do
|
||||||
done
|
done
|
||||||
|
|
||||||
QUERY="WHERE NOT -NTOTAL = sum_array(nperdevice)"
|
QUERY="WHERE NOT -NTOTAL = sum_array(nperdevice)"
|
||||||
COLUMNS=" dead, connname,cid,room,pub, lang, ntotal, nperdevice, ack,nsent,ctime,mtimes"
|
COLUMNS=" dead, connname,cid,room,pub, lang, ntotal, nperdevice, ack,nsents,ctime,mtimes"
|
||||||
COLUMNS_AS="dead as D,connname,cid,room,pub as P,lang as L,ntotal as n,nperdevice as nper,ack,nsent,ctime,mtimes"
|
COLUMNS_AS="dead as D,connname,cid,room,pub as P,lang as L,ntotal as n,nperdevice as nper,ack,nsents,ctime,mtimes"
|
||||||
|
|
||||||
echo "SELECT $COLUMNS_AS FROM ( SELECT $COLUMNS, unnest(mtimes) FROM games $QUERY) AS set GROUP BY $COLUMNS ORDER BY max(unnest) DESC LIMIT $LIMIT;" | psql xwgames
|
echo "SELECT $COLUMNS_AS FROM ( SELECT $COLUMNS, unnest(mtimes) FROM games $QUERY) AS set GROUP BY $COLUMNS ORDER BY ctime DESC LIMIT $LIMIT;" | psql xwgames
|
||||||
|
|
Loading…
Reference in a new issue