MCPcopy Create free account
hub / github.com/chinobing/FastAPI-PaddleSpeech-Audio-To-Text / get_data

Function get_data

pstext/crud.py:21–24  ·  view source on GitHub ↗
(db: Session, title: str = None, skip : int = 0, limit: int = 10)

Source from the content-addressed store, hash-verified

19 return db.query(models.Audio).filter(models.Audio.title == title).first()
20
21def get_data(db: Session, title: str = None, skip : int = 0, limit: int = 10):
22 if title:
23 return db.query(models.Audio).filter(models.Audio.title.like('%'+title+'%')).all()
24 return db.query(models.Audio).offset(skip).limit(limit).all()
25
26def create_audio_info(db: Session, data : schemas.CreateAudioData):
27 db_audio = models.Audio(**data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected