Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
95554cce
Commit
95554cce
authored
Jul 11, 2018
by
Guilhem Saurel
Browse files
graph: invert direction
parent
9f6f447e
Pipeline
#931
passed with stages
in 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/views.py
View file @
95554cce
...
...
@@ -111,7 +111,7 @@ def docker(request):
def
graph_svg
(
request
):
with
open
(
'/tmp/graph'
,
'w'
)
as
f
:
print
(
'digraph { rankdir=
R
L;'
,
file
=
f
)
print
(
'digraph { rankdir=L
R
;'
,
file
=
f
)
for
project
in
models
.
Project
.
objects
.
filter
(
from_gepetto
=
True
):
print
(
f
'{{I
{
project
.
pk
}
[label="
{
project
}
"];}}'
,
file
=
f
)
for
dep
in
models
.
Dependency
.
objects
.
filter
(
project__from_gepetto
=
True
,
library__from_gepetto
=
True
):
...
...
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