Exemplo n.º 1
0
    def matchers(self):
        timestamps = Watchlist.timestamps()
        for ts in self.watchlists.keys():
            if ts not in timestamps:
                self.watchlists.pop(ts, None)

        for ts in timestamps:
            if ts not in self.watchlists:
                log.info('Entity tagger updating watchlist: %r', ts)
                self.watchlists[ts] = self.compile_watchlist(ts[0])

        return self.watchlists.values()