fix
This commit is contained in:
@@ -76,10 +76,14 @@ async def get_state(
|
||||
next_actions = recent_steps[-1]["suggested_actions"] if recent_steps else []
|
||||
if world.intro_scene and not recent_steps:
|
||||
next_actions = []
|
||||
from app.core.time_utils import format_time_human
|
||||
return {
|
||||
"world": {
|
||||
"id": str(world.id), "name": world.name, "current_time": world.current_time,
|
||||
"id": str(world.id), "name": world.name,
|
||||
"current_time": world.current_time,
|
||||
"current_time_human": format_time_human(world.current_time, world.language),
|
||||
"language": world.language, "intro_scene": world.intro_scene,
|
||||
"status": world.status,
|
||||
},
|
||||
"environment": world.environment,
|
||||
"recent_steps": recent_steps,
|
||||
|
||||
Reference in New Issue
Block a user