From da946cc779f89282e82f3afb03845699d91ad389 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 1 May 2024 20:24:09 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- qtribu/gui/form_rdp_news.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qtribu/gui/form_rdp_news.py b/qtribu/gui/form_rdp_news.py index 6bb089a7..dd07b67a 100644 --- a/qtribu/gui/form_rdp_news.py +++ b/qtribu/gui/form_rdp_news.py @@ -163,9 +163,7 @@ def generate_preview(self) -> None: selected_icon: GeotribuImage = self.cbb_icon.currentData() if selected_icon: icon_remote_url_parsed = urlparse(selected_icon.url) - icon_local_path = Path( - LOCAL_CDN_PATH / icon_remote_url_parsed.path[1:] - ) + icon_local_path = Path(LOCAL_CDN_PATH / icon_remote_url_parsed.path[1:]) md_txt += f"\n![selected_icon.description]({icon_local_path})\n" else: md_txt += "\n"