Commit 88c591f1 authored by takatost's avatar takatost

fix agent app converter command

parent d5d2c3e2
...@@ -405,12 +405,12 @@ def convert_to_agent_apps(): ...@@ -405,12 +405,12 @@ def convert_to_agent_apps():
click.echo('Converting app: {}'.format(app.id)) click.echo('Converting app: {}'.format(app.id))
try: try:
app.mode = AppMode.AGENT.value app.mode = AppMode.AGENT_CHAT.value
db.session.commit() db.session.commit()
# update conversation mode to agent # update conversation mode to agent
db.session.query(Conversation).filter(Conversation.app_id == app.id).update( db.session.query(Conversation).filter(Conversation.app_id == app.id).update(
{Conversation.mode: AppMode.AGENT.value} {Conversation.mode: AppMode.AGENT_CHAT.value}
) )
db.session.commit() db.session.commit()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment