refactor: is_free only per-inbound, remove server-level check

This commit is contained in:
SashegDev
2026-05-20 17:44:11 +00:00
parent 0771b300e5
commit e855c30285
+1 -7
View File
@@ -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]]: