From 718b3095dd0bb4863250dba6914f5439c9fe3910 Mon Sep 17 00:00:00 2001
From: Florian Spreckelsen <f.spreckelsen@indiscale.com>
Date: Fri, 23 Aug 2024 16:54:28 +0200
Subject: [PATCH] MAINT: Replace .format by f-string

---
 src/caoscrawler/crawl.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/caoscrawler/crawl.py b/src/caoscrawler/crawl.py
index 542a35c5..c761d730 100644
--- a/src/caoscrawler/crawl.py
+++ b/src/caoscrawler/crawl.py
@@ -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")
-- 
GitLab