fix: remover contagem de avaliacoes entre parenteses e exibir apenas a nota com a estrela
This commit is contained in:
@@ -44,7 +44,7 @@ def render_kanban_board(leads: list, api_client: APIClient):
|
||||
reviews = lead.get('total_avaliacoes', 0)
|
||||
maps_url = lead.get('google_maps_url', '')
|
||||
|
||||
rating_str = f"⭐ {rating:.1f} ({reviews})" if rating > 0 else "Sem avaliação"
|
||||
rating_str = f"⭐ {rating:.1f}" if rating > 0 else "Sem avaliação"
|
||||
|
||||
# Container visual do Card
|
||||
with st.container(border=True):
|
||||
|
||||
@@ -71,7 +71,7 @@ def render_analytical_table_view(api_client: APIClient):
|
||||
'Ramo': l.get('ramo_atividade'),
|
||||
'Cidade/UF': f"{l.get('cidade', '')}/{l.get('uf', '')}",
|
||||
'Telefone': l.get('telefone'),
|
||||
'Rating': f"⭐ {l.get('google_rating')} ({l.get('total_avaliacoes')})",
|
||||
'Rating': f"⭐ {l.get('google_rating', 0.0)}",
|
||||
'Status': l.get('status_funil'),
|
||||
'WhatsApp': wa_link,
|
||||
'Criado em': l.get('criado_em', '')[:10] if l.get('criado_em') else ''
|
||||
|
||||
@@ -71,7 +71,7 @@ def render_radar_busca_view(api_client: APIClient):
|
||||
'Importar': True,
|
||||
'Empresa': r.get('nome_empresa'),
|
||||
'Telefone': r.get('telefone') or 'Não informado',
|
||||
'Avaliação': f"⭐ {r.get('google_rating')} ({r.get('total_avaliacoes')})",
|
||||
'Avaliação': f"⭐ {r.get('google_rating', 0.0)}",
|
||||
'Endereço / Trecho': r.get('endereco', ''),
|
||||
'_raw_item': r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user