Commit 0c242d3d authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

graph: RL & from_gepetto

parent e5562db2
Pipeline #926 passed with stages
in 47 seconds
......@@ -111,8 +111,8 @@ def docker(request):
def graph_svg(request):
with open('/tmp/graph', 'w') as f:
print('digraph {', file=f)
for project in models.Project.objects.all():
print('digraph { rankdir=RL;', file=f)
for project in models.Project.objects.filter(from_gepetto=True):
print(f'{{I{} [label="{project}"];}}', file=f)
for dep in models.Dependency.objects.all():
print(f'I{} -> I{};', file=f)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment