update docs task orca ag

This commit is contained in:
2025-05-06 22:37:54 -03:00
parent bec7eb294c
commit 1d336e157f
3 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@ class Submission(SQLModel, table=True):
"""Task submission model."""
task_id: str
swarmBountyId: int = Field(primary_key=True)
swarmBountyId: str = Field(primary_key=True)
status: str = "pending"
pr_url: Optional[str] = None
username: Optional[str] = None

View File

@ -16,7 +16,7 @@ def fetch_submission(swarmBountyId):
submission = (
db.query(Submission)
.filter(
Submission.swarmBountyId == int(swarmBountyId),
Submission.swarmBountyId == swarmBountyId,
)
.first()
)

View File

@ -26,6 +26,7 @@ def handle_task_creation(task_id, swarmBountyId, repo_url, db=None):
result = workflow.run()
if result.get("success"):
# Convert swarmBountyId to integer
submission = Submission(
task_id=task_id,
swarmBountyId=swarmBountyId,