Don't use ResultId anymore
This commit is contained in:
@@ -39,7 +39,7 @@ searchResultDecoder =
|
|||||||
|
|
||||||
type alias Model =
|
type alias Model =
|
||||||
{ query : String
|
{ query : String
|
||||||
, results : Dict ResultId SearchResult
|
, results : Dict Int SearchResult
|
||||||
, errorMessage : Maybe String
|
, 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 =
|
viewSearchResults results =
|
||||||
-- TODO sort by star count and render
|
-- TODO sort by star count and render
|
||||||
[]
|
[]
|
||||||
@@ -117,7 +117,7 @@ update msg model =
|
|||||||
|
|
||||||
HandleSearchResponse results ->
|
HandleSearchResponse results ->
|
||||||
let
|
let
|
||||||
resultsById : Dict ResultId SearchResult
|
resultsById : Dict Int SearchResult
|
||||||
resultsById =
|
resultsById =
|
||||||
-- TODO convert results list into a Dict
|
-- TODO convert results list into a Dict
|
||||||
Dict.empty
|
Dict.empty
|
||||||
|
|||||||
Reference in New Issue
Block a user