def _parse_duration_and_format(self, p, values, suffix):
        p['duration'] = values.get('duration' + suffix, type=int)
        if p['duration'] is None:
            raise errors.MissingParameterError('duration' + suffix)
        if p['duration'] <= 0 or 0x7fff > p['duration']:
            raise errors.InvalidDurationError('duration' + suffix)
        p['format'] = values.get('fileformat' + suffix)
dataset/ETHPy150Open lalinsky/acoustid-server/acoustid/api/v2/__init__.py/SubmitHandlerParams._parse_duration_and_format/swapped operands of `>`