Skip to content
Snippets Groups Projects
Commit 718b3095 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

MAINT: Replace .format by f-string

parent c3532527
No related branches found
No related tags found
2 merge requests!181Release 0.9.0,!179F fix url formatting
Pipeline #54417 passed
......@@ -754,15 +754,15 @@ one with the entities that need to be updated and the other with entities to be
filename = OldCrawler.save_form([el[3] for el in pending_changes], path, run_id)
link_address = get_shared_resource_link(db.configuration.get_config()[
"Connection"]["url"], filename)
text = """Dear Curator,
changes = "\n".join([el[3] for el in pending_changes])
text = f"""Dear Curator,
there where changes that need your authorization. Please check the following
carefully and if the changes are ok, click on the following link:
{link_address}
{changes}
""".format(link_address,
changes="\n".join([el[3] for el in pending_changes]))
"""
try:
fro = get_config_setting("sendmail_from_address")
to = get_config_setting("sendmail_to_address")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment