def project_hazard_help_fields(options):
 table = current.s3db.project_hazard
 keys = dict(options).keys()
 rows = current.db(table.id.belongs(keys)).select(table.id, table.comments)
 T = current.T
 translated = (lambda string: (T(string) if string else ''))
 tooltips = {}
 for row in rows:
  tooltips[row.id] = translated(row.comments)
 return tooltips

def project_hazard_help_fields ( options ) : table = current . s3db . project_hazard keys = dict ( options ) . keys ( ) rows = current . db ( table . id . belongs ( keys ) ) . select ( table . id , table . comments ) T = current . T translated = ( lambda string : ( T ( string ) if string else '' ) ) tooltips = { } for row in rows : tooltips [ row . id ] = translated ( row . comments ) return tooltips
provide the tooltips for the hazard filter .