diff --git a/src/ohmyapi/builtin/demo/routes.py b/src/ohmyapi/builtin/demo/routes.py index 5489942..212c2be 100644 --- a/src/ohmyapi/builtin/demo/routes.py +++ b/src/ohmyapi/builtin/demo/routes.py @@ -16,7 +16,7 @@ router = APIRouter(prefix="/tournemant") ) async def list(): """List all tournaments.""" - return await models.Tournament.Schema.model.from_queryset(Tournament.all()) + return await models.Tournament.Schema.model.from_queryset(models.Tournament.all()) @router.post("/", tags=["tournament"], status_code=HTTPStatus.CREATED)