app/soc/views/models/program.py
changeset 1917 334094450b77
parent 1911 87c3e62b28dc
child 1918 77c726b96916
equal deleted inserted replaced
1916:71b3f3521a10 1917:334094450b77
   391              identification information and contact information.
   391              identification information and contact information.
   392     """
   392     """
   393 
   393 
   394     get_dict = request.GET
   394     get_dict = request.GET
   395 
   395 
   396     if not (get_dict.get('limit') or get_dict.get('offset')):
   396     if not (get_dict.get('limit') and get_dict.get('offset')):
   397       return self.json(request, {})
   397       return self.json(request, {})
   398 
   398 
   399     try:
   399     try:
   400       limit = max(0, int(get_dict['limit']))
   400       limit = max(0, int(get_dict['limit']))
   401       offset = max(0, int(get_dict['offset']))
   401       offset = max(0, int(get_dict['offset']))