feature: sol004 and sol007
[osm/NBI.git] / osm_nbi / html_out.py
index 2d5a929..89e2f67 100644 (file)
@@ -196,8 +196,11 @@ def format(data, request, response, toke_info):
         if "Location" in response.headers:
             body += '<a href="{}"> show </a>'.format(response.headers["Location"])
         else:
         if "Location" in response.headers:
             body += '<a href="{}"> show </a>'.format(response.headers["Location"])
         else:
-            _id = request.path_info[request.path_info.rfind("/") + 1 :]
-            body += '<a href="/osm/{}?METHOD=DELETE"> <img src="/osm/static/delete.png" height="25" width="25"> </a>'.format(
+            _id = request.path_info[request.path_info.rfind("/") + 1:]
+            body += (
+                '<a href="/osm/{}?METHOD=DELETE"> '
+                '<img src="/osm/static/delete.png" height="25" width="25"> </a>'
+            ).format(
                 request.path_info
             )
             if request.path_info.startswith(
                 request.path_info
             )
             if request.path_info.startswith(