1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-04 02:14:06 +02:00

demo list tests and fixes

This commit is contained in:
Robin Appelman 2017-04-08 15:43:32 +02:00
commit 835bad1901
5 changed files with 175 additions and 28 deletions

View file

@ -11,13 +11,9 @@ class InfoProvider extends BaseProvider {
$demoCount = $this->db->demo()->count();
$playerCount = $this->db->user()->count();
$sql = 'SELECT count(user_id) FROM players GROUP BY user_id';
$result = $this->query($sql);
return [
'demos' => $demoCount,
'players' => $playerCount,
'uploaders' => $result->fetchColumn()
'players' => $playerCount
];
}
}