mirror of
https://github.com/hansjone/netx.git
synced 2026-10-10 09:50:44 +08:00
fix(managed-ne): keep API list behavior for UI while MCP remains restricted
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
987b501e53
commit
3a35b54f0e
2 changed files with 4 additions and 12 deletions
|
|
@ -238,10 +238,6 @@ def list_managed_ne(
|
|||
kw = str(keyword or "").strip()
|
||||
v = str(vendor or "").strip()
|
||||
cs = str(connect_status or "").strip()
|
||||
if not (kw or v or cs):
|
||||
raise HTTPException(status_code=400, detail="managed_ne_filter_required")
|
||||
if kw and len(kw) < 2:
|
||||
raise HTTPException(status_code=400, detail="managed_ne_keyword_too_short")
|
||||
if kw:
|
||||
like = f"%{kw}%"
|
||||
stmt = stmt.filter(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue