Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,6 +94,9 @@ def log_event(state: dict, **kwargs):
|
|
| 94 |
if "actions" in kwargs and isinstance(kwargs["actions"], str):
|
| 95 |
kwargs["actions"] = normalize_text_for_csv(kwargs["actions"])
|
| 96 |
|
|
|
|
|
|
|
|
|
|
| 97 |
entry = {"time": now, "user_id": state.get("user_id"), **kwargs}
|
| 98 |
log_to_csv(entry)
|
| 99 |
|
|
|
|
| 94 |
if "actions" in kwargs and isinstance(kwargs["actions"], str):
|
| 95 |
kwargs["actions"] = normalize_text_for_csv(kwargs["actions"])
|
| 96 |
|
| 97 |
+
if "choice" in kwargs and isinstance(kwargs["choice"], str):
|
| 98 |
+
kwargs["choice"] = normalize_text_for_csv(kwargs["choice"])
|
| 99 |
+
|
| 100 |
entry = {"time": now, "user_id": state.get("user_id"), **kwargs}
|
| 101 |
log_to_csv(entry)
|
| 102 |
|