some typos
This commit is contained in:
@ -77,7 +77,7 @@ async def create_item(item: Item):
|
||||
|
||||
|
||||
@app.post("/items/add_category/", response_model=Item)
|
||||
async def create_item(item: Item, category: Category):
|
||||
async def add_item_category(item: Item, category: Category):
|
||||
await item.categories.add(category)
|
||||
return item
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import asyncio
|
||||
import sqlite3
|
||||
|
||||
import asyncpg
|
||||
import asyncpg # type: ignore
|
||||
import databases
|
||||
import pymysql
|
||||
import pytest
|
||||
|
||||
Reference in New Issue
Block a user