Skip to content

Commit

Permalink
⬆️ 更新依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
shoucandanghehe committed Oct 10, 2024
1 parent d7b2254 commit 6c3090e
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 90 deletions.
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"nicegui>=1.4.35",
"pydantic>=2.8.2",
"httpx>=0.27.0",
"rich>=13.7.1",
"aiocache>=0.12.2",
"nicegui>=2.3.0",
"pydantic>=2.9.2",
"httpx>=0.27.2",
"rich>=13.9.2",
"aiocache>=0.12.3",
"loguru>=0.7.2",
"richuru>=0.1.1",
"msgspec>=0.18.6",
"playwright>=1.46.0",
"yarl>=1.9.4",
"playwright>=1.47.0",
"yarl>=1.14.0",
"xlsxwriter>=3.2.0",
]

Expand Down
6 changes: 3 additions & 3 deletions src/tsl_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async def get_user_info(id: int, user_id_or_name: str) -> UserInfo:

def update_table(task: Task[UserInfo], table: ui.table, queue: Queue) -> None:
result = task.result()
table.add_rows(
table.add_row(
{
'sn': result.id,
'user': result.user.name.upper(),
Expand Down Expand Up @@ -178,7 +178,7 @@ async def page() -> None:
users = ui.textarea('用户名 每行一个').classes('w-full').bind_value(globals(), 'inputs')
feedback = ui.markdown()
users.on_value_change(partial(validate_users, feedback))
ui.button('提交', on_click=lambda: ui.open('/result'))
ui.button('提交', on_click=lambda: ui.navigate.to('/result'))


@ui.page('/result')
Expand Down Expand Up @@ -207,7 +207,7 @@ def timer_callback() -> None:
timer.deactivate()
spinner.delete()
with ui.row():
ui.button('返回', on_click=lambda: ui.open('/') or get_user_info.clear())
ui.button('返回', on_click=lambda: ui.navigate.to('/') and get_user_info.clear())
if table.rows:
ui.button('下载表格', on_click=lambda: ui.download(to_excel(get_user_info.result), 'test.xlsx'))
ui.button('下载头像', on_click=download_avatars)
Expand Down
Loading

0 comments on commit 6c3090e

Please sign in to comment.