forked from filipg/gonito
Fix showing the test name
This commit is contained in:
parent
30c7727d6a
commit
f95fc680ba
@ -9,6 +9,8 @@ import Handler.SubmissionView
|
|||||||
import Handler.TagUtils
|
import Handler.TagUtils
|
||||||
import Handler.JWT
|
import Handler.JWT
|
||||||
|
|
||||||
|
import Prelude (read)
|
||||||
|
|
||||||
import Data.Diff
|
import Data.Diff
|
||||||
|
|
||||||
import qualified Yesod.Table as Table
|
import qualified Yesod.Table as Table
|
||||||
@ -41,7 +43,7 @@ data TestReference = TestReference Text Text
|
|||||||
instance ToJSON TestReference where
|
instance ToJSON TestReference where
|
||||||
toJSON (TestReference metric n) = object
|
toJSON (TestReference metric n) = object
|
||||||
[ "name" .= n,
|
[ "name" .= n,
|
||||||
"metric" .= metric
|
"metric" .= (Data.Text.pack $ evaluationSchemeName $ read $ Data.Text.unpack metric)
|
||||||
]
|
]
|
||||||
|
|
||||||
instance ToSchema TestReference where
|
instance ToSchema TestReference where
|
||||||
|
Loading…
Reference in New Issue
Block a user