mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-16 20:56:03 +08:00
fix dialogue_count
This commit is contained in:
parent
92072e2ed7
commit
d6da7b0336
@ -115,8 +115,6 @@ class AdvancedChatAppRunner(WorkflowBasedAppRunner):
|
|||||||
):
|
):
|
||||||
return
|
return
|
||||||
|
|
||||||
db.session.close()
|
|
||||||
|
|
||||||
# Init conversation variables
|
# Init conversation variables
|
||||||
stmt = select(ConversationVariable).where(
|
stmt = select(ConversationVariable).where(
|
||||||
ConversationVariable.app_id == self.conversation.app_id, ConversationVariable.conversation_id == self.conversation.id
|
ConversationVariable.app_id == self.conversation.app_id, ConversationVariable.conversation_id == self.conversation.id
|
||||||
@ -137,11 +135,11 @@ class AdvancedChatAppRunner(WorkflowBasedAppRunner):
|
|||||||
|
|
||||||
session.commit()
|
session.commit()
|
||||||
|
|
||||||
# Increment dialogue count.
|
# Increment dialogue count.
|
||||||
self.conversation.dialogue_count += 1
|
self.conversation.dialogue_count += 1
|
||||||
|
|
||||||
conversation_dialogue_count = self.conversation.dialogue_count
|
conversation_dialogue_count = self.conversation.dialogue_count
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
# Create a variable pool.
|
# Create a variable pool.
|
||||||
system_inputs = {
|
system_inputs = {
|
||||||
@ -163,6 +161,8 @@ class AdvancedChatAppRunner(WorkflowBasedAppRunner):
|
|||||||
# init graph
|
# init graph
|
||||||
graph = self._init_graph(graph_config=workflow.graph_dict)
|
graph = self._init_graph(graph_config=workflow.graph_dict)
|
||||||
|
|
||||||
|
db.session.close()
|
||||||
|
|
||||||
# RUN WORKFLOW
|
# RUN WORKFLOW
|
||||||
workflow_entry = WorkflowEntry(
|
workflow_entry = WorkflowEntry(
|
||||||
tenant_id=workflow.tenant_id,
|
tenant_id=workflow.tenant_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user