1 # coding: utf-8 2 3 -def slice_query(query, limit=100, offset=0): 4 """ 5 :param Query query: 6 :param int limit: 7 :param int offset: 8 :rtype: Query 9 """ 10 return query.limit(limit).offset(offset) 11