Пример #1
0
 def set_per_page(self, per_page):
     self._per_page = max(Utils.safe_int(per_page, 1), 1)
     return self
Пример #2
0
 def set_offset(self, offset):
     self._offset = max(Utils.safe_int(offset, 0), -1)
     return self