Limit and configure how many jobs the Jobs panels show
This commit is contained in:
+11
-1
@@ -211,6 +211,9 @@ def app_config() -> Any:
|
||||
"mode_labels": MODE_LABELS,
|
||||
"library_available": orchestrator.library_available(),
|
||||
"update_interval": config.UPDATE_INTERVAL_HOURS,
|
||||
"job_list_max_hours": config.JOB_LIST_MAX_HOURS,
|
||||
"job_list_max_count": config.JOB_LIST_MAX_COUNT,
|
||||
**orchestrator.job_list_settings(),
|
||||
}
|
||||
|
||||
|
||||
@@ -219,7 +222,14 @@ def settings() -> Any:
|
||||
if request.method == "PUT":
|
||||
data = _json()
|
||||
return orchestrator.save_settings(
|
||||
data.get("recent_chapters"), data.get("personal_ini"), data.get("hold_new_links"), data.get("pause_uploads")
|
||||
data.get("recent_chapters"),
|
||||
data.get("personal_ini"),
|
||||
data.get("hold_new_links"),
|
||||
data.get("pause_uploads"),
|
||||
data.get("story_jobs_hours"),
|
||||
data.get("story_jobs_count"),
|
||||
data.get("main_jobs_hours"),
|
||||
data.get("main_jobs_count"),
|
||||
)
|
||||
return orchestrator.get_settings()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user