vimalk78 commited on
Commit
4689944
Β·
1 Parent(s): 4b3475b

fix(log): show tier names not description

Browse files

Signed-off-by: Vimal Kumar <[email protected]>

crossword-app/backend-py/src/services/thematic_word_service.py CHANGED
@@ -901,9 +901,9 @@ class ThematicWordService:
901
  log_lines = [f"πŸ“Š Generated {len(raw_results)} thematic words, grouped by tiers:"]
902
 
903
  for tier in tier_order:
 
 
904
  if tier in tier_groups:
905
- tier_desc = self.tier_descriptions.get(tier, tier)
906
- log_lines.append(f" πŸ“Š {tier_desc}:")
907
  # Sort words within tier alphabetically
908
  tier_words = sorted(tier_groups[tier], key=lambda x: x[0])
909
  for word, similarity in tier_words:
 
901
  log_lines = [f"πŸ“Š Generated {len(raw_results)} thematic words, grouped by tiers:"]
902
 
903
  for tier in tier_order:
904
+ # tier_desc = self.tier_descriptions.get(tier, tier)
905
+ log_lines.append(f" πŸ“Š {tier}:")
906
  if tier in tier_groups:
 
 
907
  # Sort words within tier alphabetically
908
  tier_words = sorted(tier_groups[tier], key=lambda x: x[0])
909
  for word, similarity in tier_words: