Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext-prelude
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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-prelude
Commits
7bcd5fc5
Commit
7bcd5fc5
authored
Nov 30, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'cgenie/master'
parents
fd49707a
7b9656ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Prelude.hs
src/Gargantext/Prelude.hs
+0
-1
Clock.hs
src/Gargantext/Prelude/Clock.hs
+0
-2
Config.hs
src/Gargantext/Prelude/Config.hs
+3
-0
No files found.
src/Gargantext/Prelude.hs
View file @
7bcd5fc5
...
@@ -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
src/Gargantext/Prelude/Clock.hs
View file @
7bcd5fc5
...
@@ -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
src/Gargantext/Prelude/Config.hs
View file @
7bcd5fc5
...
@@ -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"
}
}
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