From: tierno Date: Wed, 28 Aug 2019 13:30:23 +0000 (+0000) Subject: html output header: return project name instead of id X-Git-Tag: v6.0.2rc1~4 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=commitdiff_plain;h=19ee3b009a324217eace4684af72f4344655592e html output header: return project name instead of id Change-Id: I44134a1fb02006b82a7ed74a04f2737b53f47453 Signed-off-by: tierno --- diff --git a/osm_nbi/html_out.py b/osm_nbi/html_out.py index 1883a96..a8823bd 100644 --- a/osm_nbi/html_out.py +++ b/osm_nbi/html_out.py @@ -186,7 +186,7 @@ def format(data, request, response, toke_info): if toke_info.get("username"): user_text += "user: {}".format(toke_info.get("username")) if toke_info.get("project_id"): - user_text += ", project: {}".format(toke_info.get("project_id")) + user_text += ", project: {}".format(toke_info.get("project_name")) return html_start.format(user_text) + body + html_end # yaml.safe_dump(data, explicit_start=True, indent=4, default_flow_style=False) # tags=False,