BigDataBiology / AMPSphereWebsite

Website for global antimicrobial peptides.

Home Page:https://ampsphere.big-data-biology.org/home

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Page info doesn't follow filter criterias

AdeBC opened this issue · comments

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()