Skip to content

Commit

Permalink
refactor: [FC-0063] Redundant variable is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
myhailo-chernyshov-rg committed Jan 23, 2025
1 parent 30075bf commit bb12545
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cc2olx/content_parsers/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def _parse_image_webcontent_from_web_resources_dir(self, web_content: WebContent
"""
Parse webcontent image from "web_resources" directory.
"""
static_file_path = web_content.static_file_path
olx_static_path = web_content.olx_static_path
self._cartridge.olx_to_original_static_file_paths.add_web_resource_path(
olx_static_path,
Expand All @@ -88,7 +87,7 @@ def _parse_image_webcontent_from_web_resources_dir(self, web_content: WebContent

with open(image_webcontent_tpl_path, encoding="utf-8") as image_webcontent_tpl:
tpl_content = image_webcontent_tpl.read()
html = tpl_content.format(olx_static_path=olx_static_path, static_file_path=static_file_path)
html = tpl_content.format(olx_static_path=olx_static_path, static_file_path=web_content.static_file_path)

return {"html": html}

Expand Down

0 comments on commit bb12545

Please sign in to comment.