From ed7494b14be1d46cafb08ffee6a2bcf8d13460a7 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Wed, 16 Aug 2017 22:43:52 +0200 Subject: [PATCH] fix fmt args --- lg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lg.py b/lg.py index 3b5e56e..0abc24b 100644 --- a/lg.py +++ b/lg.py @@ -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("
" + graph.create_dot() + "
") if fmt == "png": response = Response(graph.create_png(), mimetype='image/png')