feat: 维护中国代理池并支持账号自动均匀使用
This commit is contained in:
@@ -15,7 +15,7 @@ from euniv.course_workers import CourseWorkersError
|
||||
from euniv.course_workers import apply as apply_workers
|
||||
from euniv.course_workers import of as workers_of
|
||||
from euniv.course_workers import view_of as workers_view
|
||||
from euniv.proxy import ProxyError, apply, clear, summary_of, url_of, view_of
|
||||
from euniv.proxy import ProxyError, apply, clear, enabled, summary_of, url_of, view_of
|
||||
from euniv.study_window import StudyWindowError
|
||||
from euniv.study_window import apply as apply_start
|
||||
from euniv.study_window import label_of as start_label
|
||||
@@ -73,7 +73,7 @@ def list_users(db: Session) -> list[dict]:
|
||||
"last_refresh_at": _iso_time(account.last_refresh_at),
|
||||
"credential_valid": _optional_bool(account.credential_valid),
|
||||
"month_hours": account.month_hours or "",
|
||||
"has_proxy": bool(account.proxy_scheme and account.proxy_host and account.proxy_port),
|
||||
"has_proxy": enabled(account),
|
||||
"proxy": summary_of(account),
|
||||
"study_start": start_label(account),
|
||||
"study_start_day": int(account.study_start_day or 1),
|
||||
|
||||
Reference in New Issue
Block a user