def set_paging(self):
        # handling 0:24
        match = re.match(r'^(\d*):(\d*):{0,1}\d*$', self.jsonpath_paging)
        if match:
            start, end = match.groups()
            if(start.length == 0):
                start = 0
            if(end.length == 0):
                end = int(start) + self.max_count
            start, end = int(start), int(end)+1 # second argument means the element should be included!
            self.start = start
            count = self.max_count
            if end-start < self.max_count:
                count = start-end
            self.end = start+count
dataset/ETHPy150Open klipstein/dojango/dojango/data/__init__.py/JsonQueryRestStoreInfo.set_paging/swapped operands of `-`