@hook.on_start
def load_cache(db):
 global ignore_cache
 ignore_cache = []
 for row in db.execute(table.select()):
  conn = row['connection']
  chan = row['channel']
  mask = row['mask']
  ignore_cache.append((conn, chan, mask))

@ hook . on_start def load_cache ( db ) : global ignore_cache ignore_cache = [ ] for row in db . execute ( table . select ( ) ) : conn = row [ 'connection' ] chan = row [ 'channel' ] mask = row [ 'mask' ] ignore_cache . append ( ( conn , chan , mask ) )
return unpickled object .