From 956d5927cd2265c0ce99cc4663c48125c290d6af Mon Sep 17 00:00:00 2001 From: w Date: Sat, 7 Jun 2025 01:01:06 -0300 Subject: [PATCH] small config fix --- bot/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/config.py b/bot/config.py index fb34223..227f949 100644 --- a/bot/config.py +++ b/bot/config.py @@ -25,8 +25,8 @@ def get_rarity_to_weight(config_section): """Parses Rarity_X keys from config and returns a {rarity: weight} dict.""" rarity_weights = {} for key, value in config_section.items(): - if key.startswith("Rarity_"): - rarity = int(key.removeprefix("Rarity_")) + if key.startswith("rarity_"): + rarity = int(key.removeprefix("rarity_")) rarity_weights[rarity] = float(value) return rarity_weights