feat: vendor pages /vendor/<slug> with SEO, sitemap updated, links from main

This commit is contained in:
2026-05-15 15:54:39 +03:00
parent 1a8dd74be6
commit 7c0c2ea14a
5 changed files with 264 additions and 5 deletions
+1 -1
View File
@@ -411,7 +411,7 @@ def fetch_scope_data(scope: str) -> dict:
conn = get_db()
vendors = [dict(r) for r in conn.execute(
f"SELECT id, name, COALESCE(logo,'') as logo, COALESCE(description,'') as description, "
f"COALESCE(website,'') as website, COALESCE(mont_page,'') as mont_page "
f"COALESCE(website,'') as website, COALESCE(mont_page,'') as mont_page, COALESCE(slug,'') as slug "
f"FROM {tables['vendors']} ORDER BY lower(name)"
)]
categories = [dict(r) for r in conn.execute(f"SELECT id, name FROM {tables['categories']} ORDER BY lower(name)")]