def get_optout()

in glam/api/management/commands/import_probes.py [0:0]


    def get_optout(self, channel, probe):
        # Returns the optout info or None
        try:
            return probe["history"][channel][0]["optout"]
        except (KeyError, IndexError):
            return None