removed active users from list of inactive users
This commit is contained in:
parent
83210db718
commit
83485074b0
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,9 @@ postHomeR = do
|
|||
|
||||
getReactivateR :: Handler Html
|
||||
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
|
||||
$(widgetFile "reactivate")
|
||||
|
||||
|
|
Loading…
Reference in a new issue