Skip to content

Commit

Permalink
Working education query
Browse files Browse the repository at this point in the history
  • Loading branch information
adamConnerSax committed Jun 20, 2019
1 parent a07b21c commit 8747759
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions census-servant/census-downloader/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ main = do
>> (fmap (fmap (fmap (addYear x))) $ getOneYearLong
runServant
stateKeysFrame
Census.acsGRAKeys
Census.acsGAEKeys
Census.AllStatesAndDistricts
x
)
Expand Down Expand Up @@ -181,7 +181,7 @@ getOneYearLong
)
)
getOneYearLong runServant stateKeysFrame requestedDataKeys geoCode year = do
let acsQuery = Census.getACSCountsLong Census.acsGRARequestDictionary
let acsQuery = Census.getACSCountsLong Census.acsGAERequestDictionary
requestedDataKeys
year
Census.ACS1
Expand Down
5 changes: 5 additions & 0 deletions census-servant/src/Census/Fields.hs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ acsGRARequestDictionary =

acsGRAKeys = allWNHKeys ++ allGAKeys

acsGAERequestDictionary =
CF.addRequests allGAERequests CF.emptyRequestDictionary

acsGAEKeys = allGAEKeys

data GenderT = Female | Male deriving (Enum,Bounded,Eq,Ord,Show)
data RaceT = Black | Hispanic | Asian | Native | Pacific | WhiteAlone | WhiteNonHispanic deriving (Enum,Bounded,Eq,Ord,Show)
data AgeRT = A18To24 | A25To44 | A45To64 | A65To74 | A75AndOver deriving (Enum,Bounded,Eq,Ord,Show)
Expand Down

0 comments on commit 8747759

Please sign in to comment.