fix(backend): Increase songs limit to 1000
Some checks are pending
Deploy Elmeg / deploy (push) Waiting to run
Some checks are pending
Deploy Elmeg / deploy (push) Waiting to run
This commit is contained in:
parent
f73d1aaca1
commit
a5b2ded18f
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ def create_song(song: SongCreate, session: Session = Depends(get_session), curre
|
||||||
return db_song
|
return db_song
|
||||||
|
|
||||||
@router.get("/", response_model=List[SongRead])
|
@router.get("/", response_model=List[SongRead])
|
||||||
def read_songs(offset: int = 0, limit: int = Query(default=100, le=100), session: Session = Depends(get_session)):
|
def read_songs(offset: int = 0, limit: int = Query(default=100, le=1000), session: Session = Depends(get_session)):
|
||||||
songs = session.exec(select(Song).offset(offset).limit(limit)).all()
|
songs = session.exec(select(Song).offset(offset).limit(limit)).all()
|
||||||
return songs
|
return songs
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue