removed active users from list of inactive users

This commit is contained in:
nek0 2015-04-08 18:02:33 +02:00
parent 83210db718
commit 83485074b0

View file

@ -25,7 +25,9 @@ postHomeR = do
getReactivateR :: Handler Html getReactivateR :: Handler Html
getReactivateR = do getReactivateR = do
users <- runDB $ selectList [] [Asc UserIdent] time <- liftIO getCurrentTime
secs <- return $ (R.read $ formatTime defaultTimeLocale "%s" time) - 8640000
users <- runDB $ selectList [UserTimestamp <. secs] [Asc UserIdent]
defaultLayout $ do defaultLayout $ do
$(widgetFile "reactivate") $(widgetFile "reactivate")