|
37 | 37 | </html>""" |
38 | 38 |
|
39 | 39 | DEFAULT_IMAGE = "https://pyplots.ai/og-image.png" |
40 | | -DEFAULT_DESCRIPTION = "Library-agnostic, AI-powered Python plotting examples. Automatically generated, tested, and maintained." |
| 40 | +DEFAULT_DESCRIPTION = ( |
| 41 | + "Library-agnostic, AI-powered Python plotting examples. Automatically generated, tested, and maintained." |
| 42 | +) |
41 | 43 |
|
42 | 44 |
|
43 | 45 | @router.get("/sitemap.xml") |
@@ -93,10 +95,7 @@ async def seo_home(): |
93 | 95 | """Bot-optimized home page with correct og:tags.""" |
94 | 96 | return HTMLResponse( |
95 | 97 | BOT_HTML_TEMPLATE.format( |
96 | | - title="pyplots.ai", |
97 | | - description=DEFAULT_DESCRIPTION, |
98 | | - image=DEFAULT_IMAGE, |
99 | | - url="https://pyplots.ai/", |
| 98 | + title="pyplots.ai", description=DEFAULT_DESCRIPTION, image=DEFAULT_IMAGE, url="https://pyplots.ai/" |
100 | 99 | ) |
101 | 100 | ) |
102 | 101 |
|
@@ -144,11 +143,7 @@ async def seo_spec_overview(spec_id: str, db: AsyncSession | None = Depends(opti |
144 | 143 |
|
145 | 144 |
|
146 | 145 | @router.get("/seo-proxy/{spec_id}/{library}") |
147 | | -async def seo_spec_implementation( |
148 | | - spec_id: str, |
149 | | - library: str, |
150 | | - db: AsyncSession | None = Depends(optional_db), |
151 | | -): |
| 146 | +async def seo_spec_implementation(spec_id: str, library: str, db: AsyncSession | None = Depends(optional_db)): |
152 | 147 | """Bot-optimized spec implementation page with dynamic og:image from preview_url.""" |
153 | 148 | if db is None: |
154 | 149 | # Fallback when DB unavailable |
|
0 commit comments