Don't use ResultId anymore

This commit is contained in:
Richard Feldman
2016-08-21 16:10:10 -07:00
parent bc860d73fd
commit 5a9f80145f

View File

@@ -39,7 +39,7 @@ searchResultDecoder =
type alias Model =
{ query : String
, results : Dict ResultId SearchResult
, results : Dict Int SearchResult
, errorMessage : Maybe String
}
@@ -72,7 +72,7 @@ view model =
]
viewSearchResults : Dict ResultId SearchResult -> List (Html Msg)
viewSearchResults : Dict Int SearchResult -> List (Html Msg)
viewSearchResults results =
-- TODO sort by star count and render
[]
@@ -117,7 +117,7 @@ update msg model =
HandleSearchResponse results ->
let
resultsById : Dict ResultId SearchResult
resultsById : Dict Int SearchResult
resultsById =
-- TODO convert results list into a Dict
Dict.empty