Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(form-rdp): LOCAL_CDN_PATH was unreachable #172

Merged
merged 2 commits into from
May 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions qtribu/gui/form_rdp_news.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
GEORDP_NEWS_CATEGORIES,
GEORDP_NEWS_ICONS,
ICON_GEORDP,
LOCAL_CDN_PATH,
GeotribuImage,
)
from qtribu.toolbelt import NetworkRequestsManager, PlgLogger, PlgOptionsManager
Expand Down Expand Up @@ -162,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(
self.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
Loading