Beispiel #1
0
 def list(db: Session,
          offset: int = 0,
          limit: int = 100,
          show_removed=False):
     """
     Returns all user groups
     :param show_removed:
     :param db:
     :param offset:
     :param limit:
     :return:
     """
     return DatabaseUtils.limited_results(db, UserGroupModel, offset, limit,
                                          show_removed)
 def list(db: Session,
          offset: int = 0,
          limit: int = 100,
          show_removed=False):
     """
     Returns the users list
     :param show_removed:
     :param db:
     :param offset:
     :param limit:
     :return:
     """
     return DatabaseUtils.limited_results(db=db,
                                          model=UserModel,
                                          offset=offset,
                                          limit=limit,
                                          show_removed=show_removed)
Beispiel #3
0
 def list(db: Session, limit: int = 100, offset: int = 0):
     return DatabaseUtils.limited_results(db,
                                          CharacterModel,
                                          limit=limit,
                                          offset=offset)