Page info doesn't follow filter criterias
AdeBC opened this issue · comments
Hui-Chong commented
TODO
Change the behavior of get_page_info
function in crud.py
.
def get_page_info(kind: str, page_size: int, page: int, db: Session,
accession: str = None, search_text: str = None):
if kind == 'amp':
total_items = db.query(models.AMP.accession).count()