def add_limit_to_query(query, args):
 if args.get(u'limit_page_length'):
  query += u'\n DCTB  DCTB  DCTB limit %(limit_start)s, %(limit_page_length)s'
  import frappe.utils
  args[u'limit_start'] = frappe.utils.cint(args.get(u'limit_start'))
  args[u'limit_page_length'] = frappe.utils.cint(args.get(u'limit_page_length'))
 return (query, args)

def add_limit_to_query ( query , args ) : if args . get ( u'limit_page_length' ) : query += u'\n DCTB  DCTB  DCTB limit %(limit_start)s, %(limit_page_length)s' import frappe . utils args [ u'limit_start' ] = frappe . utils . cint ( args . get ( u'limit_start' ) ) args [ u'limit_page_length' ] = frappe . utils . cint ( args . get ( u'limit_page_length' ) ) return ( query , args )
add limit condition to query can be used by methods called in listing to add limit condition .