This commit is contained in:
yumoqing 2025-08-24 11:03:54 +08:00
parent 8a257e94e4
commit a44ea6f6b3
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# #
dmgr = DownloadMgr(request, DictObject(**globals())) dmgr = DownloadMgr(request)
try: try:
x = await dmgr.download(params_kw.url) x = await dmgr.download(params_kw.url)
return UiMessage(title='download', message=f'download submited') return UiMessage(title='download', message=f'download submited')

View File

@ -5,7 +5,7 @@
"height":"100%" "height":"100%"
}, },
"subwidgets":[ "subwidgets":[
{% set dmgr = DownloadMgr(request, DictObject(**globals())) %} {% set dmgr = DownloadMgr(request) %}
{% for task in dmgr.get_user_tasks() %} {% for task in dmgr.get_user_tasks() %}
{ {
"widgettype":"urlwidget", "widgettype":"urlwidget",

View File

@ -1,4 +1,4 @@
{% set dmgr=DownloadMgr(request, DictObject(**globals())) %} {% set dmgr=DownloadMgr(request) %}
{% set status=dmgr.get_task_status(params_kw.taskid) %} {% set status=dmgr.get_task_status(params_kw.taskid) %}
{ {
"widgettype":"VBox", "widgettype":"VBox",