awacke1 commited on
Commit
06b383c
·
verified ·
1 Parent(s): 7f324ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -228,8 +228,8 @@ async def websocket_handler(websocket, path):
228
  if action == "ANIMAL":
229
  st.session_state.prairie_players[client_id]["animal"] = value
230
  elif action == "MOVE":
231
- target = PRAIRIE_LOCATIONS.get(value, PRAIRIE_LOCATIONS["Deadwood, SD"])
232
- .ADDRESSst.session_state.prairie_players[client_id]["location"] = target
233
  action_msg = f"{username} ({st.session_state.prairie_players[client_id]['animal']}) moves to {value}"
234
  await save_chat_entry(username, action_msg, voice)
235
  else:
 
228
  if action == "ANIMAL":
229
  st.session_state.prairie_players[client_id]["animal"] = value
230
  elif action == "MOVE":
231
+ target = PRAIRIE_LOCATIONS.get(value, PRAIRIE_LOCATIONS["Deadwood, SD"]).ADDRESS
232
+ st.session_state.prairie_players[client_id]["location"] = target
233
  action_msg = f"{username} ({st.session_state.prairie_players[client_id]['animal']}) moves to {value}"
234
  await save_chat_entry(username, action_msg, voice)
235
  else: