Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
195
Issues
195
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
151b9174
Verified
Commit
151b9174
authored
Apr 04, 2023
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[pubmed] use fixed pubmed repo, fix per page to be > 20
parent
37d418f2
Pipeline
#3850
failed with stage
in 30 minutes and 20 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Pubmed.hs
src/Gargantext/Core/Text/Corpus/API/Pubmed.hs
+4
-3
stack.yaml
stack.yaml
+1
-1
No files found.
src/Gargantext/Core/Text/Corpus/API/Pubmed.hs
View file @
151b9174
...
...
@@ -41,9 +41,10 @@ get :: Maybe Text
->
Maybe
Limit
->
IO
(
Either
ClientError
(
Maybe
Integer
,
ConduitT
()
HyperdataDocument
IO
()
))
get
mAPIKey
q
l
=
do
eRes
<-
runReaderT
PubMed
.
getMetadataWithC
(
Config
{
apiKey
=
mAPIKey
,
query
=
q
,
perPage
=
Nothing
})
eRes
<-
runReaderT
PubMed
.
getMetadataWithC
(
Config
{
apiKey
=
mAPIKey
,
query
=
q
,
perPage
=
Just
200
,
mWebEnv
=
Nothing
})
let
takeLimit
=
case
l
of
Nothing
->
mapC
identity
Just
l'
->
takeC
$
fromIntegral
l'
...
...
stack.yaml
View file @
151b9174
...
...
@@ -74,7 +74,7 @@ extra-deps:
# External Data API connectors
-
git
:
https://gitlab.iscpif.fr/gargantext/crawlers/pubmed.git
commit
:
4ade495751eaf31d3ca1ac8b0ae13d3538c6e18c
commit
:
234ad423fa682307ff4843ae4acd725dcc6ffc55
-
git
:
https://gitlab.iscpif.fr/gargantext/crawlers/istex.git
commit
:
a34bb341236d82cf3d488210bc1d8448a98f5808
-
git
:
https://gitlab.iscpif.fr/gargantext/crawlers/hal.git
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment