in glam/api/management/commands/import_probes.py [0:0]
def get_probe_versions(self, channel, probe):
# Return an array with first version and last version.
try:
return [
probe["history"][channel][-1]["versions"]["first"],
probe["history"][channel][0]["versions"]["last"],
]
except (KeyError, IndexError):
return [None, None]