@danhachuel/thunderbolt 0.5.57 → 0.5.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/app/main.py +4 -1
  2. package/package.json +1 -1
package/app/main.py CHANGED
@@ -2057,7 +2057,8 @@ def format_metric_number(value: Any) -> str:
2057
2057
  if value in (None, ""):
2058
2058
  return "—"
2059
2059
  try:
2060
- return f"{int(value):,}".replace(",", ".")
2060
+ normalized = str(value).strip().replace(".", "").replace(",", "")
2061
+ return f"{int(normalized):,}".replace(",", ".")
2061
2062
  except (TypeError, ValueError):
2062
2063
  return str(value)
2063
2064
 
@@ -2207,6 +2208,8 @@ def render_tiktok_channels():
2207
2208
  st.metric("Seguidores", format_metric_number(channel.get("subscriber_count")))
2208
2209
  with card_cols[3]:
2209
2210
  st.metric("Curtidas", format_metric_number(channel.get("likes_count")))
2211
+ with card_cols[4]:
2212
+ st.metric("Vídeos", format_metric_number(channel.get("video_count")))
2210
2213
  with card_cols[5]:
2211
2214
  active = st.toggle("Activo", value=bool(channel.get("active", True)), key=f"tiktok_import_card_active_{channel_id}")
2212
2215
  if active != bool(channel.get("active", True)):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danhachuel/thunderbolt",
3
- "version": "0.5.57",
3
+ "version": "0.5.58",
4
4
  "description": "Thunderbolt — interface local para operação de canais faceless e motor MoneyPrinterTurbo",
5
5
  "license": "MIT",
6
6
  "main": "scripts/cli.mjs",