Limit index page to 30 polls and descending

This commit is contained in:
Konrad Merz 2015-03-29 20:07:38 +02:00
parent 9dd91557a3
commit 7f89cfaf58

View file

@ -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