Upload app.py
Browse files
app.py
CHANGED
|
@@ -281,7 +281,7 @@ def smart_proxy_assignment(proxies_state, api_keys_state):
|
|
| 281 |
if status.startswith("✅") or "HTTPSConnectionPool" in status:
|
| 282 |
active_proxies.append((url, info))
|
| 283 |
if not active_proxies:
|
| 284 |
-
return [], list(keys.keys()), "⚠️ Không
|
| 285 |
for url, info in proxies.items():
|
| 286 |
info["assigned_keys"] = []
|
| 287 |
key_list = list(keys.keys())
|
|
@@ -540,10 +540,12 @@ def save_and_show_keys(text, api_keys_state, proxies_state):
|
|
| 540 |
if p.get("status", "").startswith("✅") or "HTTPSConnectionPool" in p.get("status", "")
|
| 541 |
]
|
| 542 |
if not active_proxies:
|
| 543 |
-
assign_message += "
|
| 544 |
|
| 545 |
# Build kết quả
|
| 546 |
df = dataframe_with_keys(keys, proxies)
|
|
|
|
|
|
|
| 547 |
message = f"✅ Thêm {added} key mới, kiểm tra {checked} key. {assign_message}"
|
| 548 |
choices = get_key_choices_for_display(keys)
|
| 549 |
lowest = choices[0] if choices else None
|
|
|
|
| 281 |
if status.startswith("✅") or "HTTPSConnectionPool" in status:
|
| 282 |
active_proxies.append((url, info))
|
| 283 |
if not active_proxies:
|
| 284 |
+
return [], list(keys.keys()), "⚠️ Không gắn proxy – Đang dùng IP thật (Vẫn ổn nếu xài dưới 3 Key/ngày).", proxies
|
| 285 |
for url, info in proxies.items():
|
| 286 |
info["assigned_keys"] = []
|
| 287 |
key_list = list(keys.keys())
|
|
|
|
| 540 |
if p.get("status", "").startswith("✅") or "HTTPSConnectionPool" in p.get("status", "")
|
| 541 |
]
|
| 542 |
if not active_proxies:
|
| 543 |
+
assign_message += " ⚠️ Không có proxy – Đang dùng IP thật (Vẫn ổn nếu xài dưới 3 key/ngày)"
|
| 544 |
|
| 545 |
# Build kết quả
|
| 546 |
df = dataframe_with_keys(keys, proxies)
|
| 547 |
+
if not active_proxies:
|
| 548 |
+
assign_message = "⚠️ Không gắn proxy – Đang dùng IP thật (Vẫn ổn nếu xài dưới 3 Key/ngày)"
|
| 549 |
message = f"✅ Thêm {added} key mới, kiểm tra {checked} key. {assign_message}"
|
| 550 |
choices = get_key_choices_for_display(keys)
|
| 551 |
lowest = choices[0] if choices else None
|