Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ def upload_tool_file(self, file):
return file_url

def upload_application_file(self, file):
application = self.workflow_manage.work_flow_post_handler.chat_info.application
application_id = self.workflow_manage.work_flow_post_handler.chat_info.application_id
chat_id = self.workflow_params.get('chat_id')
meta = {
'debug': False if application.id else True,
'debug': False if application_id else True,
'chat_id': chat_id,
'application_id': str(application.id) if application.id else None,
'application_id': str(application_id) if application_id else None,
}
file_url = FileSerializer(data={
'file': file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ def upload_tool_file(self, file):
return file_url

def upload_application_file(self, file):
application = self.workflow_manage.work_flow_post_handler.chat_info.application
application_id = self.workflow_manage.work_flow_post_handler.chat_info.application_id
chat_id = self.workflow_params.get('chat_id')
meta = {
'debug': False if application.id else True,
'debug': False if application_id else True,
'chat_id': chat_id,
'application_id': str(application.id) if application.id else None,
'application_id': str(application_id) if application_id else None,
}
file_url = FileSerializer(data={
'file': file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ def upload_tool_file(self, file):
return file_url

def upload_application_file(self, file):
application = self.workflow_manage.work_flow_post_handler.chat_info.application
application_id = self.workflow_manage.work_flow_post_handler.chat_info.application_id
chat_id = self.workflow_params.get('chat_id')
meta = {
'debug': False if application.id else True,
'debug': False if application_id else True,
'chat_id': chat_id,
'application_id': str(application.id) if application.id else None,
'application_id': str(application_id) if application_id else None,
}
file_url = FileSerializer(data={
'file': file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ def upload_tool_file(self, file):
return file_url

def upload_application_file(self, file):
application = self.workflow_manage.work_flow_post_handler.chat_info.application
application_id = self.workflow_manage.work_flow_post_handler.chat_info.application_id
chat_id = self.workflow_params.get('chat_id')
meta = {
'debug': False if application.id else True,
'debug': False if application_id else True,
'chat_id': chat_id,
'application_id': str(application.id) if application.id else None,
'application_id': str(application_id) if application_id else None,
}
Comment on lines 105 to 112
file_url = FileSerializer(data={
'file': file,
Expand Down
Loading