From 0b91856280d8f5ab9fc4657b67e4f9083f5e4b73 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 25 Jan 2026 17:37:22 +0000 Subject: [PATCH] Fix KeyError in tag scoring - use consistent high/low keys --- app/helper/lastfm_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helper/lastfm_profile.py b/app/helper/lastfm_profile.py index 819e9b2..2e917b8 100644 --- a/app/helper/lastfm_profile.py +++ b/app/helper/lastfm_profile.py @@ -10,8 +10,8 @@ 'low': ['calm', 'chill', 'relaxing', 'mellow', 'soft', 'slow', 'ambient', 'peaceful', 'gentle'] }, 'mood': { - 'positive': ['happy', 'uplifting', 'cheerful', 'fun', 'feel good', 'joyful', 'optimistic', 'bright'], - 'negative': ['sad', 'melancholic', 'dark', 'depressing', 'angry', 'aggressive', 'haunting', 'moody'] + 'high': ['happy', 'uplifting', 'cheerful', 'fun', 'feel good', 'joyful', 'optimistic', 'bright'], + 'low': ['sad', 'melancholic', 'dark', 'depressing', 'angry', 'aggressive', 'haunting', 'moody'] }, 'danceability': { 'high': ['dance', 'danceable', 'groovy', 'funky', 'rhythm', 'beat', 'club', 'party', 'disco'],