Dont write the spawn chance with ** around it to the json file, only add that when printing it
All checks were successful
Build and push / changes (push) Successful in 41s
Build and push / Lint-Python (push) Successful in 20s
Build and push / Build-and-Push-Docker (push) Successful in 3m7s
Build and push / sync-argocd-app (push) Successful in 4s
Build and push / post-failure-to-discord (push) Has been skipped
Build and push / post-success-to-discord (push) Successful in 2s

This commit is contained in:
Luke Robles 2025-05-01 14:11:30 -07:00
parent fcc7bbd605
commit 20475cb0d8
2 changed files with 3 additions and 3 deletions

View File

@ -194,7 +194,7 @@ class Tarkov(commands.Cog):
embed.add_field(
name=key,
value="\n".join(
f"{k}: {v['spawnChance']}" for k, v in value.items()
f"{k}: **{v['spawnChance']}**" for k, v in value.items()
),
inline=False,
)
@ -203,7 +203,7 @@ class Tarkov(commands.Cog):
if boss_name in value:
embed.add_field(
name=key,
value=f"{boss_name}: {value[boss_name]['spawnChance']}",
value=f"{boss_name}: **{value[boss_name]['spawnChance']}**",
inline=False,
)
# break

View File

@ -78,7 +78,7 @@ def get_tarkov_boss_info():
"escorts": sum(
escort["amount"][0]["count"] for escort in boss["escorts"]
),
"spawnChance": f"**{str(round(boss['spawnChance'] * 100, 2))}%**",
"spawnChance": f"{str(round(boss['spawnChance'] * 100, 2))}%",
"picture": boss["boss"]["imagePortraitLink"],
}
for boss in level["bosses"]