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