fix: guard all JSONB list fields against dict type in SEO 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
Adds 'is not mapping' checks for gsc_top_queries, gsc_top_pages, and gbp_search_keywords to prevent KeyError on slicing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d4046f4a65
commit
fc04604098
@ -756,7 +756,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if analysis.gsc_top_queries %}
|
||||
{% if analysis.gsc_top_queries and analysis.gsc_top_queries is not mapping %}
|
||||
<div style="margin-top: var(--spacing-lg); padding: var(--spacing-md); background: var(--background); border-radius: var(--radius);">
|
||||
<div class="detail-label" style="margin-bottom: var(--spacing-sm);">Top zapytania, po ktorych ludzie trafiaja na strone:</div>
|
||||
<table style="width: 100%; font-size: var(--font-size-sm); border-collapse: collapse;">
|
||||
@ -781,7 +781,7 @@
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if analysis.gsc_top_pages %}
|
||||
{% if analysis.gsc_top_pages and analysis.gsc_top_pages is not mapping %}
|
||||
<div style="margin-top: var(--spacing-sm); padding: var(--spacing-md); background: var(--background); border-radius: var(--radius);">
|
||||
<div class="detail-label" style="margin-bottom: var(--spacing-sm);">Najpopularniejsze podstrony w Google:</div>
|
||||
<table style="width: 100%; font-size: var(--font-size-sm); border-collapse: collapse;">
|
||||
@ -977,7 +977,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if analysis.gbp_search_keywords %}
|
||||
{% if analysis.gbp_search_keywords and analysis.gbp_search_keywords is not mapping %}
|
||||
<div style="margin-top: var(--spacing-lg); padding: var(--spacing-md); background: var(--background); border-radius: var(--radius);">
|
||||
<div class="detail-label" style="margin-bottom: var(--spacing-sm);">Po jakich slowach ludzie szukaja tej firmy w Google Maps:</div>
|
||||
<table style="width: 100%; font-size: var(--font-size-sm); border-collapse: collapse;">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user