change max lenght
This commit is contained in:
@@ -274,19 +274,24 @@ class ConfigAnalyzer:
|
||||
|
||||
# Add source type tags
|
||||
if "base_url" in config_data or (
|
||||
config_type == "unified" and any(s.get("type") == "documentation" for s in config_data.get("sources", []))
|
||||
config_type == "unified"
|
||||
and any(s.get("type") == "documentation" for s in config_data.get("sources", []))
|
||||
):
|
||||
tags.add("documentation")
|
||||
|
||||
if "repo" in config_data or (
|
||||
config_type == "unified" and any(s.get("type") == "github" for s in config_data.get("sources", []))
|
||||
config_type == "unified"
|
||||
and any(s.get("type") == "github" for s in config_data.get("sources", []))
|
||||
):
|
||||
tags.add("github")
|
||||
|
||||
if (
|
||||
"pdf" in config_data
|
||||
or "pdf_url" in config_data
|
||||
or (config_type == "unified" and any(s.get("type") == "pdf" for s in config_data.get("sources", [])))
|
||||
or (
|
||||
config_type == "unified"
|
||||
and any(s.get("type") == "pdf" for s in config_data.get("sources", []))
|
||||
)
|
||||
):
|
||||
tags.add("pdf")
|
||||
|
||||
|
||||
@@ -58,7 +58,9 @@ async def root():
|
||||
|
||||
|
||||
@app.get("/api/configs")
|
||||
async def list_configs(category: str | None = None, tag: str | None = None, type: str | None = None) -> dict[str, Any]:
|
||||
async def list_configs(
|
||||
category: str | None = None, tag: str | None = None, type: str | None = None
|
||||
) -> dict[str, Any]:
|
||||
"""
|
||||
List all available configs with metadata
|
||||
|
||||
|
||||
Reference in New Issue
Block a user