fix(backend): Increase songs limit to 1000
Some checks are pending
Deploy Elmeg / deploy (push) Waiting to run

This commit is contained in:
fullsizemalt 2025-12-24 17:35:24 -08:00
parent f73d1aaca1
commit a5b2ded18f

View file

@ -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