diff --git a/src/caoscrawler/crawl.py b/src/caoscrawler/crawl.py index 542a35c5582d1a3fbb63fd92bdd5d9e82f6db9b1..c761d730842647a1ec401966c4221811dda1cd9c 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")