def _get_last_lobbyist_represent_data(self, data):
        try:
            last_lobbyist_represent_data = LobbyistRepresentData.objects.filter(scrape_time__isnull=False).latest('scrape_time')
        except __HOLE__:
            last_lobbyist_represent_data = None
        if last_lobbyist_represent_data is not None:
            for key in ['name', 'domain', 'type']:
                if data[key] != getattr(last_lobbyist_represent_data, key):
                    last_lobbyist_represent_data = None
                    break
        return last_lobbyist_represent_data
dataset/ETHPy150Open ofri/Open-Knesset/lobbyists/scrapers/lobbyist_represent.py/LobbyistRepresentListStorage._get_last_lobbyist_represent_data