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
158
Issues
158
List
Board
Labels
Milestones
Merge Requests
11
Merge Requests
11
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
6e7d829b
Commit
6e7d829b
authored
Feb 03, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[COSMETICS] in query
parent
76f0419f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Node.hs
src/Data/Gargantext/Database/Node.hs
+6
-6
No files found.
src/Data/Gargantext/Database/Node.hs
View file @
6e7d829b
...
...
@@ -124,12 +124,12 @@ getNodesWithParentId conn n = runQuery conn $ selectNodeWithParentID n
selectNodeWithParentID
::
Int
->
Query
NodeRead
selectNodeWithParentID
n
=
proc
()
->
do
row
@
(
Node
_
id
_tn
_u
p_id
_n
_d
_h
)
<-
queryNodeTable
-<
()
restrict
-<
if
n
>
0
then
p
_id
.==
(
toNullable
$
pgInt4
n
)
else
isNull
p
_id
row
@
(
Node
_
_
_
parent_id
_
_
_
)
<-
queryNodeTable
-<
()
restrict
-<
if
n
>
0
then
p
arent_id
.==
(
toNullable
$
pgInt4
n
)
else
isNull
p
arent_id
returnA
-<
row
queryNodeTable
::
Query
NodeRead
...
...
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