Skip to content

ایراد در کلاینت #5

@AhmadRHM

Description

@AhmadRHM

return Agent(id=agent.id, team=agent.team, agent_type=agent.type, node_id=agent.node_id, is_dead=agent.is_dead)

سلام. فکر می‌کنم این خط از کد باید با خط زیر جایگزین شود. در حال حاضر تیم و نوع agent به درستی از enum استفاده نمی‌کنند و مقادیر ۰ یا ۱ می‌گیرند.

return Agent(id=agent.id, team=Team.to_model(agent.team), agent_type=AgentType.to_model(agent.type), node_id=agent.node_id, is_dead=agent.is_dead)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions