Problem: `login()` always ran a fresh web login even with valid cached cookies. `submit()` only checked cookie existence, not validity, relying solely on a reactive retry after auth failure. Auth redirect detection used `page_r.url.path` which could miss non-path login redirects. Solution: `login()` and `submit()` now load cookies and call `_check_usaco_login()` upfront; re-login only if the check fails. Auth detection in `_do_submit()` uses `str(page_r.url)` for a more robust redirect match. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| atcoder.py | ||
| base.py | ||
| codechef.py | ||
| codeforces.py | ||
| cses.py | ||
| kattis.py | ||
| language_ids.py | ||
| models.py | ||
| timeouts.py | ||
| usaco.py | ||