Skip to content

Commit

Permalink
Template fix
Browse files Browse the repository at this point in the history
  • Loading branch information
uittenbroekrobbert committed May 14, 2024
1 parent e47b489 commit 13f920b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tad/routers/tasks.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from typing import Annotated

from fastapi import APIRouter, Form
from fastapi import APIRouter, Form, Request
from fastapi.responses import HTMLResponse
from fastapi.templating import Jinja2Templates

from jinja2 import Environment, FileSystemLoader

from tad.services.tasks_service import TasksService

router = APIRouter(
Expand All @@ -25,6 +23,7 @@ async def test():
# TODO this is an ugly work-around, we need a JSON object instead
@router.post("/move", response_class=HTMLResponse)
async def move_task(
request: Request,
taskId: Annotated[int, Form()],
statusId: Annotated[int, Form()],
previousSiblingId: int | None = Form(None),
Expand Down

0 comments on commit 13f920b

Please sign in to comment.