diff --git a/Library-Notification-Service/src/providers/library_newsletter.py b/Library-Notification-Service/src/providers/library_newsletter.py index 9ec09ef..1053d5e 100644 --- a/Library-Notification-Service/src/providers/library_newsletter.py +++ b/Library-Notification-Service/src/providers/library_newsletter.py @@ -6,7 +6,6 @@ from ..api import ( get_backoffice_latest_pids, - get_catalogue_site_url, get_results_from_pids, send_channel_request, ) @@ -54,9 +53,7 @@ def cli(subjects: Tuple[str, ...], title: str, target: str) -> None: click.echo("No results visible in the catalogue!") return - url = get_catalogue_site_url(query) - - message = create_channel_message(results, title, url) + message = create_channel_message(results, title) click.echo( f"Subject: {subjects} - Title: {title} - Results: {len(results)} results." ) diff --git a/Library-Notification-Service/src/utils.py b/Library-Notification-Service/src/utils.py index d84101a..4908d5e 100644 --- a/Library-Notification-Service/src/utils.py +++ b/Library-Notification-Service/src/utils.py @@ -99,7 +99,7 @@ def get_pids_from_docs(docs: List[dict]) -> List[str]: return pids -def create_channel_message(message: List[dict], title: str, url: str) -> str: +def create_channel_message(message: List[dict], title: str) -> str: html_string = f"