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 changed files with 1 additions and 0 deletions

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')