Skip to content

Commit

Permalink
fix: fix doc task problem (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
xingwanying authored Aug 18, 2024
2 parents 51880cb + 9f1b24c commit 75e23bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion petercat_utils/rag_helper/git_doc_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(self,
super().__init__(bot_id=bot_id, type=TaskType.GIT_DOC, from_id=from_id, id=id, status=status,
repo_name=repo_name)
self.commit_id = commit_id
self.node_type = node_type
self.node_type = GitDocTaskNodeType(node_type)
self.sha = sha
self.path = path

Expand Down
2 changes: 1 addition & 1 deletion petercat_utils/rag_helper/git_issue_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self,
super().__init__(bot_id=bot_id, type=TaskType.GIT_ISSUE, from_id=from_id, id=id, status=status,
repo_name=repo_name)
self.issue_id = issue_id
self.node_type = node_type
self.node_type = GitIssueTaskNodeType(node_type)

def extra_save_data(self):
return {
Expand Down
2 changes: 1 addition & 1 deletion server/bot/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async def bot_builder(
response = supabase.table("bots").insert(bot_data).execute()
if response:
bot_id = response.data[0]["id"]
trigger_rag_task(repo_name, bot_id=bot_id)
trigger_rag_task(repo_name=repo_name, bot_id=bot_id)
return response
except Exception as e:
print(f"An error occurred: {e}")
Expand Down

0 comments on commit 75e23bf

Please sign in to comment.