MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / get_proxies_count

Function get_proxies_count

src/database/crud.py:670–675  ·  view source on GitHub ↗

获取代理数量

(db: Session, enabled: Optional[bool] = None)

Source from the content-addressed store, hash-verified

668
669
670def get_proxies_count(db: Session, enabled: Optional[bool] = None) -> int:
671 """获取代理数量"""
672 query = db.query(func.count(Proxy.id))
673 if enabled is not None:
674 query = query.filter(Proxy.enabled == enabled)
675 return query.scalar()
676
677
678# ============================================================================

Callers

nothing calls this directly

Calls 4

countMethod · 0.80
scalarMethod · 0.80
queryMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected