in jobs/update_orphaning_dashboard_etl.py [0:0]
def has_only_no_update_found_mapper(d):
ping = d
if ping.update_check_no_update_notify is None:
return False, ping
current_version = ping.version[0]
for index, version in enumerate(ping.version):
if current_version != version:
return True, ping
if ping.update_ping_count_notify[index] > 0:
# If there is an update ping and update_check_no_update_notify
# has a value equal to 0 then the update check returned a
# value other than no update found. This could be improved by
# checking the check value for error conditions and ignoring
# those codes and ignoring the check below for those cases.
if (ping.update_check_no_update_notify[index] == 0):
return False, ping
return True, ping