Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Goblin OGM
Goblin
Commits
89aa08cc
Commit
89aa08cc
authored
Jul 12, 2016
by
davebshow
Browse files
simplified function logic
parent
9b7e69a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
goblin/traversal.py
View file @
89aa08cc
...
...
@@ -66,6 +66,7 @@ class Traversal(connection.AbstractConnection):
return
self
.
_session
def
traversal
(
self
):
traversal
=
self
.
graph
.
traversal
()
if
self
.
_element_class
:
label
=
self
.
_element_class
.
__mapping__
.
label
traversal
=
self
.
_graph
.
traversal
()
...
...
@@ -74,8 +75,6 @@ class Traversal(connection.AbstractConnection):
if
self
.
_element_class
.
__type__
==
'edge'
:
traversal
=
traversal
.
E
()
traversal
=
traversal
.
hasLabel
(
label
)
else
:
traversal
=
self
.
graph
.
traversal
()
return
traversal
async
def
submit
(
self
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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