From 439171def4c624ff05ced8621023e1944544ce85 Mon Sep 17 00:00:00 2001 From: Igor Benav <43156212+igorbenav@users.noreply.github.com> Date: Sat, 20 Jan 2024 23:39:30 -0300 Subject: [PATCH] Update issue templates --- .github/ISSUE_TEMPLATE/fastcrud-issue.md | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/fastcrud-issue.md b/.github/ISSUE_TEMPLATE/fastcrud-issue.md index 41364b8..28d1ff0 100644 --- a/.github/ISSUE_TEMPLATE/fastcrud-issue.md +++ b/.github/ISSUE_TEMPLATE/fastcrud-issue.md @@ -13,28 +13,7 @@ A clear and concise description of what the bug or question is. **To Reproduce** Please provide a self-contained, minimal, and reproducible example of your use case ```python -from fastapi import FastAPI -from fastcrud import FastCRUD, crud_router -from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine -from sqlalchemy.orm import sessionmaker - -DATABASE_URL = "sqlite+aiosqlite:///./test.db" -engine = create_async_engine(DATABASE_URL, echo=True) -async_session = sessionmaker(engine, class_=AsyncSession, expire_on_commit=False) - -app = FastAPI() - -item_router = crud_router( - session=async_session, - model=Item, - crud=FastCRUD(Item), - create_schema=ItemCreateSchema, - update_schema=ItemUpdateSchema, - path="/items", - tags=["Items"] -) - -app.include_router(item_router) +# Your code here ``` **Description**