Skip to content

Commit

Permalink
Merge pull request #4 from PrinceBaghel258025/acc-to-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
sutyum authored Nov 5, 2023
2 parents 6437b4a + f6e380c commit 1a00023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openoligo/scripts/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ async def get_task_by_id(task_id: int):
tags=["Synthesis Queue"],
)
async def update_a_synthesis_task(
task_id: int, sequence: Optional[str] = Body(None), rank: Optional[int] = Body(None)
task_id: int, sequence: NucleotidesModel, rank: Optional[int] = Body(None)
):
"""Update a particular task in the queue."""
task = await SynthesisTask.get_or_none(id=task_id)
Expand All @@ -177,7 +177,7 @@ async def update_a_synthesis_task(
if sequence is not None:
try:
seq_validator = ValidSeq()
seq_validator(sequence)
# seq_validator(sequence)
task.sequence = sequence # type: ignore
except ValidationError as exc:
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail=str(exc)) from exc
Expand Down

0 comments on commit 1a00023

Please sign in to comment.