Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Przemyslaw Kaminski
haskell-gargantext
Commits
51152a29
Commit
51152a29
authored
Jan 08, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Chart] Fix Docs count (Chart still not completed)
parent
ca645b1c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
Chart.hs
src/Gargantext/Core/Viz/Chart.hs
+1
-1
NodeNode.hs
src/Gargantext/Database/Query/Table/NodeNode.hs
+3
-6
No files found.
src/Gargantext/Core/Viz/Chart.hs
View file @
51152a29
...
...
@@ -25,7 +25,7 @@ import Gargantext.Database.Admin.Config
import
Gargantext.Database.Prelude
import
Gargantext.Database.Query.Table.Node
import
Gargantext.Database.Query.Table.Node.Select
import
Gargantext.Database.Query.Table.Node
Node
(
selectDocsDates
)
import
Gargantext.Database.Query.Table.Node
Context
(
selectDocsDates
)
import
Gargantext.Database.Schema.Node
import
Gargantext.Prelude
import
Gargantext.Core.Text.Metrics.Count
(
occurrencesWith
)
...
...
src/Gargantext/Database/Query/Table/NodeNode.hs
View file @
51152a29
...
...
@@ -21,7 +21,7 @@ commentary with @some markup@.
module
Gargantext.Database.Query.Table.NodeNode
(
module
Gargantext
.
Database
.
Schema
.
NodeNode
,
queryNodeNodeTable
,
select
Doc
sDates
,
select
Node
sDates
,
selectDocNodes
,
selectDocs
,
getNodeNode
...
...
@@ -131,11 +131,9 @@ selectCountDocs cId = runCountOpaQuery (queryCountDocs cId)
returnA
-<
n
-- | TODO use UTCTime fast
select
Doc
sDates
::
HasDBid
NodeType
=>
CorpusId
->
Cmd
err
[
Text
]
select
Doc
sDates
cId
=
map
(
head'
"selectDocsDates"
.
splitOn
"-"
)
select
Node
sDates
::
HasDBid
NodeType
=>
CorpusId
->
Cmd
err
[
Text
]
select
Node
sDates
cId
=
map
(
head'
"selectDocsDates"
.
splitOn
"-"
)
<$>
catMaybes
<$>
map
(
view
hd_publication_date
)
<$>
selectDocs
cId
...
...
@@ -174,7 +172,6 @@ joinOn1 = leftJoin queryNodeTable queryNodeNodeTable cond
cond
::
(
NodeRead
,
NodeNodeRead
)
->
Column
SqlBool
cond
(
n
,
nn
)
=
nn
^.
nn_node1_id
.==
n
^.
node_id
------------------------------------------------------------------------
selectPublicNodes
::
HasDBid
NodeType
=>
(
Hyperdata
a
,
DefaultFromField
SqlJsonb
a
)
=>
Cmd
err
[(
Node
a
,
Maybe
Int
)]
...
...
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