ultimos cambios?

This commit is contained in:
2025-03-16 22:18:18 +01:00
parent 1274100a03
commit 13b68876aa

View File

@ -227,7 +227,7 @@ def search_indice(indice):
"indice": indice,
"valorActual": price.text.replace(",", "").strip(), # Convertir a número
"cambio": price_change.text.replace(",", "").strip(), # Convertir a número
"porcentaje": price_change_percent.text.strip()
"porcentaje": price_change_percent.text.strip().replace("(", "").replace(")", "") # Eliminar paréntesis
}
logging.info(data)
# Enviar los datos al bot de Telegram