Commit 7bcd5fc5 authored by Alexandre Delanoë's avatar Alexandre Delanoë

Merge remote-tracking branch 'cgenie/master'

parents fd49707a 7b9656ce
...@@ -361,4 +361,3 @@ hasDuplicatesWith seen (x:xs) = ...@@ -361,4 +361,3 @@ hasDuplicatesWith seen (x:xs) =
-- we'll add it the the set of previously seen items and process the rest of the -- we'll add it the the set of previously seen items and process the rest of the
-- list against that. -- list against that.
x `Set.member` seen || hasDuplicatesWith (Set.insert x seen) xs x `Set.member` seen || hasDuplicatesWith (Set.insert x seen) xs
...@@ -23,5 +23,3 @@ getTime = liftBase $ Clock.getTime Clock.ProcessCPUTime ...@@ -23,5 +23,3 @@ getTime = liftBase $ Clock.getTime Clock.ProcessCPUTime
hasTime :: Formatting.Internal.Format r (Clock.TimeSpec -> Clock.TimeSpec -> r) hasTime :: Formatting.Internal.Format r (Clock.TimeSpec -> Clock.TimeSpec -> r)
hasTime = timeSpecs hasTime = timeSpecs
...@@ -48,6 +48,8 @@ data GargConfig = GargConfig { _gc_backend_name :: !T.Text ...@@ -48,6 +48,8 @@ data GargConfig = GargConfig { _gc_backend_name :: !T.Text
, _gc_max_docs_parsers :: !Integer , _gc_max_docs_parsers :: !Integer
, _gc_max_docs_scrapers :: !Integer , _gc_max_docs_scrapers :: !Integer
, _gc_pubmed_api_key :: !T.Text
} }
deriving (Generic, Show) deriving (Generic, Show)
...@@ -87,4 +89,5 @@ readConfig fp = do ...@@ -87,4 +89,5 @@ readConfig fp = do
, _gc_frame_istex_url = stripRight '/' $ val' "FRAME_ISTEX_URL" , _gc_frame_istex_url = stripRight '/' $ val' "FRAME_ISTEX_URL"
, _gc_max_docs_parsers = read $ cs $ val' "MAX_DOCS_PARSERS" , _gc_max_docs_parsers = read $ cs $ val' "MAX_DOCS_PARSERS"
, _gc_max_docs_scrapers = read $ cs $ val' "MAX_DOCS_SCRAPERS" , _gc_max_docs_scrapers = read $ cs $ val' "MAX_DOCS_SCRAPERS"
, _gc_pubmed_api_key = val' "PUBMED_API_KEY"
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment