projects
/
e-DoKo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BUGFIX: solo statistics didn't include silent solo
[e-DoKo.git]
/
include
/
stats.php
diff --git
a/include/stats.php
b/include/stats.php
index d372e4ae163669c5dfc79f8c6a0b392fad2b5eac..095296edcd919223a5d340fc646a6a06c8a66d54 100644
(file)
--- a/
include/stats.php
+++ b/
include/stats.php
@@
-189,7
+189,7
@@
if( !$content = getCache("cache/stats.html",60*60*24) )
" FROM Game ".
" LEFT JOIN Hand ON Hand.position=startplayer AND Game.id=Hand.game_id ".
" LEFT JOIN User ON User.id=Hand.user_id ".
" FROM Game ".
" LEFT JOIN Hand ON Hand.position=startplayer AND Game.id=Hand.game_id ".
" LEFT JOIN User ON User.id=Hand.user_id ".
- " WHERE type='solo' AND Game.s
olo<>'silent' AND Game.s
tatus='gameover' ".
+ " WHERE type='solo' AND Game.status='gameover' ".
" GROUP BY user_id ".
" ORDER BY c DESC;");
array_unshift($result,array("Name","Number of solos","Solos/game"));
" GROUP BY user_id ".
" ORDER BY c DESC;");
array_unshift($result,array("Name","Number of solos","Solos/game"));