def _needs_static(self, version_info):
    json_path = self.get_asset_json_path()
    if (not os.path.exists(json_path)):
        return True
    with open(json_path) as fp:
        data = json.load(fp)
    if (data.get('version') != version_info.get('version')):
        return True
    if (data.get('build') != version_info.get('build')):
        return True
    return False
def _needs_static(self, version_info):
    json_path = self.get_asset_json_path()
    if (not os.path.exists(json_path)):
        return True
    with open(json_path) as fp:
        data = json.load(fp)
    if (data.get('version') != version_info.get('version')):
        return True
    if (data.get('build') != version_info.get('build')):
        return True
    return False