Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 1, 2024
1 parent 18fb040 commit da946cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions qtribu/gui/form_rdp_news.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit da946cc

Please sign in to comment.