moar moar fix

This commit is contained in:
nek0 2017-10-21 16:16:41 +02:00
parent f41f2db25d
commit 7590fa0fd7
1 changed files with 2 additions and 2 deletions

View File

@ -33,9 +33,9 @@ getSearchR = do
case res of
FormSuccess query -> do
mediumList <- runDB $ do
a <- rawSql "select ?? from medium where ? % any(string_to_array(title, ' ')"
a <- rawSql "select ?? from medium where ? % any(string_to_array(title, ' ');"
[PersistText query]
b <- rawSql "select ?? from medium where ? % any(string_to_array(description, ' ')"
b <- rawSql "select ?? from medium where ? % any(string_to_array(description, ' ');"
[PersistText query]
return $ sortBy (\ sa sb -> compare
(T.unpack $ mediumTitle $ entityVal sa)