update docs task orca ag
This commit is contained in:
@ -10,7 +10,7 @@ class Submission(SQLModel, table=True):
|
|||||||
"""Task submission model."""
|
"""Task submission model."""
|
||||||
|
|
||||||
task_id: str
|
task_id: str
|
||||||
swarmBountyId: int = Field(primary_key=True)
|
swarmBountyId: str = Field(primary_key=True)
|
||||||
status: str = "pending"
|
status: str = "pending"
|
||||||
pr_url: Optional[str] = None
|
pr_url: Optional[str] = None
|
||||||
username: Optional[str] = None
|
username: Optional[str] = None
|
||||||
|
@ -16,7 +16,7 @@ def fetch_submission(swarmBountyId):
|
|||||||
submission = (
|
submission = (
|
||||||
db.query(Submission)
|
db.query(Submission)
|
||||||
.filter(
|
.filter(
|
||||||
Submission.swarmBountyId == int(swarmBountyId),
|
Submission.swarmBountyId == swarmBountyId,
|
||||||
)
|
)
|
||||||
.first()
|
.first()
|
||||||
)
|
)
|
||||||
|
@ -26,6 +26,7 @@ def handle_task_creation(task_id, swarmBountyId, repo_url, db=None):
|
|||||||
|
|
||||||
result = workflow.run()
|
result = workflow.run()
|
||||||
if result.get("success"):
|
if result.get("success"):
|
||||||
|
# Convert swarmBountyId to integer
|
||||||
submission = Submission(
|
submission = Submission(
|
||||||
task_id=task_id,
|
task_id=task_id,
|
||||||
swarmBountyId=swarmBountyId,
|
swarmBountyId=swarmBountyId,
|
||||||
|
Reference in New Issue
Block a user