()
| 1519 | |
| 1520 | @app.route("/browser/proxy/refresh") |
| 1521 | def browser_proxy_refresh(): |
| 1522 | prefs = browser_prefs() |
| 1523 | cache = load_json(PROXY_CACHE_FILE, {}) |
| 1524 | cache.pop(prefs.get("country", "US").upper(), None) |
| 1525 | save_json(PROXY_CACHE_FILE, cache) |
| 1526 | count = len(fetch_proxy_pool(prefs.get("country", "US"))) |
| 1527 | flash(f"Proxy pool refreshed. {count} proxies cached for {prefs.get('country', 'US')}.") |
| 1528 | return redirect(request.referrer or url_for("browser_settings")) |
| 1529 | |
| 1530 | @app.route("/browser/update_tools") |
| 1531 | def browser_update_tools(): |
nothing calls this directly
no test coverage detected