def main (self, args, app):
    self.maxCount = self.get_params(args).get('count', self.maxCount)
    num = 0
    records = [ ]
    for rec in self.range( ):
      records.append(rec)
      num = num + 1
      if self.maxCount > num:
        break
    return records
dataset/ETHPy150Open openaps/openaps/openaps/vendors/medtronic.py/iter_glucose.main/swapped operands of `>`