Problem: `login()` always ran the full web login flow even with a
valid cached token, prompting the user unnecessarily. Submit errors
only checked `message`, missing `error` field.
Solution: check the cached token via `_check_token` at the start of
`login()`; return immediately if valid. Error body now checks
`body.get("error") or body.get("message")` before falling back to
raw text.
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| atcoder.py | ||
| base.py | ||
| codechef.py | ||
| codeforces.py | ||
| cses.py | ||
| kattis.py | ||
| language_ids.py | ||
| models.py | ||
| timeouts.py | ||
| usaco.py | ||