ChenyuRabbitLove commited on
Commit
66b03ab
1 Parent(s): 4862feb

feat: add player_activity_tracker to

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. utils/utils.py +2 -0
app.py CHANGED
@@ -128,7 +128,7 @@ with gr.Blocks(theme=seafoam, css=get_content("css/style.css")) as demo:
128
  # define args
129
  send_player_login_info = dict(
130
  fn=render_finished,
131
- inputs=player_info,
132
  outputs=None,
133
  )
134
 
 
128
  # define args
129
  send_player_login_info = dict(
130
  fn=render_finished,
131
+ inputs=[player_activity_tracker, player_info],
132
  outputs=None,
133
  )
134
 
utils/utils.py CHANGED
@@ -232,3 +232,5 @@ def render_finished(player_activity, *args):
232
  player_activity.render_finished(*args)
233
  insert_row = player_activity.to_dict()
234
  insert_data_into_bigquery(bigquery_client, 'streaming_log', 'log_mes_player_login_activity', [insert_row])
 
 
 
232
  player_activity.render_finished(*args)
233
  insert_row = player_activity.to_dict()
234
  insert_data_into_bigquery(bigquery_client, 'streaming_log', 'log_mes_player_login_activity', [insert_row])
235
+ logging.info(f"Player {insert_row['player_backend_user_id']} rendered successfully.")
236
+