Add HTML5 operations summary polling
This commit is contained in:
@@ -43,6 +43,7 @@ from api_server.html5 import (
|
||||
render_html5_import_check,
|
||||
render_html5_import_job,
|
||||
render_html5_operation_rows,
|
||||
render_html5_operation_summary,
|
||||
render_html5_operations,
|
||||
render_html5_settings_panel,
|
||||
render_html5_setup_summary,
|
||||
@@ -1630,6 +1631,14 @@ async def html5_operation_jobs() -> Response:
|
||||
)
|
||||
|
||||
|
||||
@app.get("/html5/operations/summary")
|
||||
async def html5_operation_summary() -> Response:
|
||||
return Response(
|
||||
render_html5_operation_summary(_html5_operation_jobs()),
|
||||
media_type="text/html; charset=utf-8",
|
||||
)
|
||||
|
||||
|
||||
@app.get("/html5/projects/{project_id}/editor")
|
||||
async def html5_project_editor(project_id: str, q: str = "") -> Response:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user