Example #1
0
File: frame.py Project: acx2015/atk
 def get_take_result():
     data = []
     schema = None
     while len(data) < n:
         url = '{0}/data?offset={2}&count={1}'.format(frame.uri,n + len(data), offset + len(data))
         result = executor.query(url)
         if not schema:
             schema = result.schema
         if len(result.data) == 0:
             break
         data.extend(result.data)
     return TakeResult(data, schema)
Example #2
0
 def get_take_result():
     data = []
     schema = None
     while len(data) < n:
         url = '{0}/data?offset={2}&count={1}'.format(frame.uri,n + len(data), offset + len(data))
         result = executor.query(url)
         if not schema:
             schema = result.schema
         if len(result.data) == 0:
             break
         data.extend(result.data)
     return TakeResult(data, schema)