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
159
Issues
159
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
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
f15d2fee
Commit
f15d2fee
authored
Jul 05, 2024
by
Loïc Chapron
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix TSV import test
parent
9c1c0360
Pipeline
#6342
passed with stages
in 36 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
TSV.hs
src/Gargantext/Core/Text/Corpus/Parsers/TSV.hs
+2
-1
No files found.
src/Gargantext/Core/Text/Corpus/Parsers/TSV.hs
View file @
f15d2fee
...
@@ -349,9 +349,10 @@ testCorrectFile bs =
...
@@ -349,9 +349,10 @@ testCorrectFile bs =
----------Test headers added to ggt
----------Test headers added to ggt
-- use a map to remove \r that sometimes appear at the end of a line
testAllHeadersPresence
::
[
Text
]
->
Either
Text
[
Text
]
testAllHeadersPresence
::
[
Text
]
->
Either
Text
[
Text
]
testAllHeadersPresence
headers
=
do
testAllHeadersPresence
headers
=
do
let
listHeaders
=
filter
(`
notElem
`
headers
)
[
"Publication Day"
,
"Publication Month"
,
"Publication Year"
,
"Authors"
,
"Title"
,
"Source"
,
"Abstract"
]
let
listHeaders
=
filter
(`
notElem
`
(
map
(
T
.
replace
(
T
.
pack
"
\r
"
)
(
T
.
pack
""
))
headers
)
)
[
"Publication Day"
,
"Publication Month"
,
"Publication Year"
,
"Authors"
,
"Title"
,
"Source"
,
"Abstract"
]
if
null
listHeaders
if
null
listHeaders
then
Right
headers
then
Right
headers
else
Left
((
pack
" Missing column : "
)
<>
T
.
intercalate
", "
listHeaders
)
else
Left
((
pack
" Missing column : "
)
<>
T
.
intercalate
", "
listHeaders
)
...
...
Przemyslaw Kaminski
@cgenie
mentioned in commit
5660aec0
·
Oct 08, 2024
mentioned in commit
5660aec0
mentioned in commit 5660aec07ec5a0a0a5468f440092c1a8f57a864e
Toggle commit list
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