BigDataBiology / AMPSphereWebsite

Website for global antimicrobial peptides.
https://ampsphere.big-data-biology.org/home
MIT License
0 stars 2 forks source link

Page info doesn't follow filter criterias #8

Closed AdeBC closed 3 years ago

AdeBC commented 3 years ago

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