def get_org_from_db(org, country):
 if (org.lower() == 'gvt'):
  if (country == 'Guinea'):
   return 'Ministere de la Sante'
  else:
   return ('MoH %s' % country)
 if org.startswith('WHO'):
  return 'World Health Organisation'
 row = db((otable.name == org)).select(table.id, limitby=(0, 1)).first()
 if row:
  return org
 row = db((otable.acronym == org)).select(table.name, limitby=(0, 1)).first()
 if row:
  return row.name
 if (org in new_org):
  new_org[org] += 1
 else:
  new_org[org] = 1
 return org

def get_org_from_db ( org , country ) : if ( org . lower ( ) == 'gvt' ) : if ( country == 'Guinea' ) : return 'Ministere de la Sante' else : return ( 'MoH %s' % country ) if org . startswith ( 'WHO' ) : return 'World Health Organisation' row = db ( ( otable . name == org ) ) . select ( table . id , limitby = ( 0 , 1 ) ) . first ( ) if row : return org row = db ( ( otable . acronym == org ) ) . select ( table . name , limitby = ( 0 , 1 ) ) . first ( ) if row : return row . name if ( org in new_org ) : new_org [ org ] += 1 else : new_org [ org ] = 1 return org
lookup an organisation .