feat: vendor pages /vendor/<slug> with SEO, sitemap updated, links from main
This commit is contained in:
+1
-1
@@ -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)")]
|
||||
|
||||
Reference in New Issue
Block a user