Skip to content
Snippets Groups Projects
Commit 8b1c65c5 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

ENH: make entity ids clickable

parent 45c3dbc2
Branches
Tags
No related merge requests found
Pipeline #15818 passed
...@@ -537,9 +537,13 @@ carefully and if the changes are ok, click on the following link: ...@@ -537,9 +537,13 @@ carefully and if the changes are ok, click on the following link:
info = "UPDATE: updating the following entities\n" info = "UPDATE: updating the following entities\n"
baseurl = db.configuration.get_config()["Connection"]["url"]
for el in cfood.to_be_updated: for el in cfood.to_be_updated:
info += str("\t" + el.name if el.name is not None else "\t" + def make_clickable(txt, id):
str(el.id)) return "<a href='{}/Entity/{}'>{}</a>".format(baseurl, id, txt)
info += str("\t" + make_clickable(el.name, el.id)
if el.name is not None
else "\t" + make_clickable(str(el.id), el.id))
info += "\n" info += "\n"
logger.info(info) logger.info(info)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment