refactor: is_free only per-inbound, remove server-level check
This commit is contained in:
+1
-7
@@ -320,13 +320,7 @@ def get_servers_for_tier(tier: str) -> List[dict]:
|
|||||||
for srv in servers:
|
for srv in servers:
|
||||||
if not srv.get("is_active"):
|
if not srv.get("is_active"):
|
||||||
continue
|
continue
|
||||||
|
result.append(srv)
|
||||||
if tier == "free":
|
|
||||||
if srv.get("is_free", True):
|
|
||||||
result.append(srv)
|
|
||||||
elif tier == "paid":
|
|
||||||
result.append(srv)
|
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def deduplicate_inbounds(servers_list: List[dict], tier: str) -> List[Tuple[dict, dict]]:
|
def deduplicate_inbounds(servers_list: List[dict], tier: str) -> List[Tuple[dict, dict]]:
|
||||||
|
|||||||
Reference in New Issue
Block a user