1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-11-14 03:14:42 +01:00

fix fmt args

This commit is contained in:
Mehdi Abaakouk 2017-08-16 22:43:52 +02:00 committed by root
parent 2342607092
commit ed7494b14b

1
lg.py
View file

@ -508,6 +508,7 @@ def show_bgpmap():
for _as in prepend_as:
graph.add_edge(pydot.Edge(*(_as, _as), label=" %dx" % prepend_as[_as], color="grey", fontcolor="grey"))
fmt = request.args.get('fmt', 'png')
#response = Response("<pre>" + graph.create_dot() + "</pre>")
if fmt == "png":
response = Response(graph.create_png(), mimetype='image/png')