Limit index page to 30 polls and descending
This commit is contained in:
parent
9dd91557a3
commit
7f89cfaf58
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ getNewPollId id = unSqlBackendKey $ unPollKey id
|
|||
|
||||
allPolls = do
|
||||
runSqlite "noodle.db" $ do
|
||||
polls <- selectList ([] :: [Filter Poll]) []
|
||||
polls <- selectList ([] :: [Filter Poll]) [LimitTo 30, Desc PollId]
|
||||
return $ polls
|
||||
|
||||
getPollById id = do
|
||||
|
|
Loading…
Reference in a new issue