comparison Tests/Toolbox.py @ 713:afa9cdd13880 find-refactoring tip

merge default -> find-refactoring
author Alain Mazy <am@orthanc.team>
date Fri, 04 Oct 2024 19:00:38 +0200
parents 0322fda1834e
children
comparison
equal deleted inserted replaced
712:6bd2b7f40917 713:afa9cdd13880
395 395
396 396
397 def IsPluginVersionAbove(orthanc, plugin, major, minor, revision): 397 def IsPluginVersionAbove(orthanc, plugin, major, minor, revision):
398 v = DoGet(orthanc, '/plugins/%s' % plugin)['Version'] 398 v = DoGet(orthanc, '/plugins/%s' % plugin)['Version']
399 399
400 if v == 'mainline': 400 if v.startswith('mainline'):
401 return True 401 return True
402 else: 402 else:
403 tmp = v.split('.') 403 tmp = v.split('.')
404 if len(tmp) >= 3: 404 if len(tmp) >= 3:
405 a = int(tmp[0]) 405 a = int(tmp[0])