sql_app/schema: fix type error

Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
HeshamTB 2022-04-03 14:55:39 +03:00
parent 98c3f5416a
commit 7dab731337

View File

@ -50,7 +50,7 @@ def create_item_for_user(
return crud.create_user_item(db=db, item=item, user_id=user_id)
@app.get("/items/", response_model=list[schemas.IotEntity])
@app.get("/items/", response_model=List[schemas.IotEntity])
def read_items(skip: int = 0, limit: int = 100, db: Session = Depends(get_db)):
items = crud.get_items(db, skip=skip, limit=limit)
return items