Fix score position and percentage
This commit is contained in:
parent
ed765541e9
commit
14b301849f
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ class GameRepository extends EntityRepository
|
|||
{
|
||||
public function getPositionForGame(Game $game) {
|
||||
$query = $this->_em->createQuery(
|
||||
"SELECT COUNT(g.id) FROM ". Game::class ." g WHERE g.score > :score AND g.level = :level"
|
||||
"SELECT COUNT(g.id) + 1 FROM ". Game::class ." g WHERE g.score > :score AND g.level = :level"
|
||||
)
|
||||
->setParameters([
|
||||
'score' => $game->getScore(),
|
||||
|
|
Loading…
Reference in a new issue