fix: check both webp and svg for logo existence in company detail
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
Logo check only looked for .webp files, missing SVG logos like Orlex Design. Now checks both extensions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c867962138
commit
0ea4f7458a
@ -670,9 +670,12 @@ def admin_company_detail(company_id):
|
||||
registry_source = 'CEIDG'
|
||||
registry_date = company.ceidg_fetched_at
|
||||
|
||||
# Logo check
|
||||
logo_path = os.path.join('static', 'img', 'companies', f'{company.slug}.webp')
|
||||
logo_exists = os.path.isfile(logo_path)
|
||||
# Logo check (webp or svg)
|
||||
logo_exists = False
|
||||
for _ext in ('webp', 'svg'):
|
||||
if os.path.isfile(os.path.join('static', 'img', 'companies', f'{company.slug}.{_ext}')):
|
||||
logo_exists = True
|
||||
break
|
||||
|
||||
# SEO - latest website analysis
|
||||
seo_analysis = db.query(CompanyWebsiteAnalysis).filter(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user