MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / can_upgrade

Function can_upgrade

archivebox/config.py:465–470  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

463 return {'recommended_version': recommended_version, 'current_version': current_version}
464
465def can_upgrade(config):
466 if config['VERSIONS_AVAILABLE'] and config['VERSIONS_AVAILABLE']['recommended_version']:
467 recommended_version = parse_version_string(config['VERSIONS_AVAILABLE']['recommended_version']['tag_name'])
468 current_version = parse_version_string(config['VERSIONS_AVAILABLE']['current_version']['tag_name'])
469 return recommended_version > current_version
470 return False
471
472
473############################## Derived Config ##################################

Callers 1

config.pyFile · 0.85

Calls 1

parse_version_stringFunction · 0.85

Tested by

no test coverage detected