jianghuyihei commited on
Commit
d787ad1
1 Parent(s): 179fcee
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -424,7 +424,7 @@ def form_post(topic: str = Form(...), user_id: str = Form(...), state: str = For
424
  script = f"""
425
  function setstate() {{
426
  document.getElementById("user_id").value = "{user_id}";
427
- document.getElementById("state").value = "{state}";
428
  let userId = document.getElementById("user_id").value;
429
  let state = document.getElementById("state").value;
430
  console.log(`1 User ID: ${{userId}}, State: ${{state}}`);
 
424
  script = f"""
425
  function setstate() {{
426
  document.getElementById("user_id").value = "{user_id}";
427
+ document.getElementById("state").value = "{new_state}";
428
  let userId = document.getElementById("user_id").value;
429
  let state = document.getElementById("state").value;
430
  console.log(`1 User ID: ${{userId}}, State: ${{state}}`);