ChenyuRabbitLove commited on
Commit
5e1e107
1 Parent(s): 067275b

fix: optimize rendering workflow

Browse files
Files changed (1) hide show
  1. app.py +6 -14
app.py CHANGED
@@ -110,20 +110,12 @@ with gr.Blocks(theme=seafoam, css=get_content("css/style.css")) as demo:
110
 
111
  # actions when player login
112
  player_info_query_btn.click(get_player_info, player_backend_id, player_info).then(
113
- player_info_query_btn.click(get_player_partners, player_info, pet_gallery)
114
- ).then(
115
- player_info_query_btn.click(get_player_badges, player_info, badge_gallery)
116
- ).then(
117
- player_info_query_btn.click(
118
- get_player_adventure_logs_html, player_info, adventure_log
119
- )
120
- ).then(
121
- player_info_query_btn.click(get_player_achievements, player_info, achievements)
122
- ).then(
123
- player_info_query_btn.click(get_current_story, None, adventure)
124
- ).then(
125
- player_info_query_btn.click(get_player_avatar, player_info, avatar)
126
- )
127
 
128
  pull_newest_player_data.submit(
129
  save_latest_player_data,
 
110
 
111
  # actions when player login
112
  player_info_query_btn.click(get_player_info, player_backend_id, player_info).then(
113
+ get_player_partners, player_info, pet_gallery).then(
114
+ get_player_badges, player_info, badge_gallery).then(
115
+ get_player_adventure_logs_html, player_info, adventure_log).then(
116
+ get_player_achievements, player_info, achievements).then(
117
+ get_current_story, None, adventure).then(
118
+ get_player_avatar, player_info, avatar)
 
 
 
 
 
 
 
 
119
 
120
  pull_newest_player_data.submit(
121
  save_latest_player_data,