fix: use actual logo file extension in company detail path
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
The logo path was hardcoded to .webp even when the actual file was .svg, causing broken image display for SVG logos like Orlex Design. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0ea4f7458a
commit
fb29b41720
@ -672,9 +672,11 @@ def admin_company_detail(company_id):
|
||||
|
||||
# Logo check (webp or svg)
|
||||
logo_exists = False
|
||||
logo_ext = None
|
||||
for _ext in ('webp', 'svg'):
|
||||
if os.path.isfile(os.path.join('static', 'img', 'companies', f'{company.slug}.{_ext}')):
|
||||
logo_exists = True
|
||||
logo_ext = _ext
|
||||
break
|
||||
|
||||
# SEO - latest website analysis
|
||||
@ -704,7 +706,7 @@ def admin_company_detail(company_id):
|
||||
},
|
||||
'logo': {
|
||||
'done': logo_exists,
|
||||
'path': f'/static/img/companies/{company.slug}.webp' if logo_exists else None,
|
||||
'path': f'/static/img/companies/{company.slug}.{logo_ext}' if logo_exists else None,
|
||||
},
|
||||
'seo': {
|
||||
'done': seo_analysis is not None,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user