def get_client_state(self):
        """Get a dict of known threat lists including clientState values."""
        q = '''SELECT threat_type,platform_type,threat_entry_type,client_state FROM threat_list'''
        output = {}
        with self.get_cursor() as dbc:
            dbc.execute(q)
            for h in dbc.fetchall():
                threat_type, platform_type, threat_entry_type, client_state = h
                threat_list_tuple = (threat_type, platform_type, threat_entry_type)
                output[threat_list_tuple] = client_state
        return output
def get_client_state ( self ) : q = '''SELECT threat_type,platform_type,threat_entry_type,client_state FROM threat_list''' output = { } with self . get_cursor ( ) as dbc : dbc . execute ( q ) for h in dbc . fetchall ( ) : threat_type , platform_type , threat_entry_type , client_state = h threat_list_tuple = ( threat_type , platform_type , threat_entry_type ) output [ threat_list_tuple ] = client_state return output
Get a dict of known threat lists including clientState values.