From 439fd97e754a82b470e43f9b844783c56f9caf43 Mon Sep 17 00:00:00 2001 From: Greg Kaleka Date: Tue, 16 Dec 2025 16:41:37 -0500 Subject: [PATCH] Split report Library Index page (#2050) --- reports/generation.py | 9 ++-- templates/admin/release_report_detail.html | 51 +++++++++++++++------- 2 files changed, 40 insertions(+), 20 deletions(-) diff --git a/reports/generation.py b/reports/generation.py index 8fe4bf03..bd1b83a9 100644 --- a/reports/generation.py +++ b/reports/generation.py @@ -44,15 +44,14 @@ def generate_mailinglist_words( word_frequencies = {} for content in get_mail_content(version, prior_version): for key, val in WordCloud().process_text(content).items(): - key = key.strip() + key = key.strip().lower() if len(key) < 2: continue if key in SiteSettings.load().wordcloud_ignore_set: continue - key_lower = key.lower() - if key_lower not in word_frequencies: - word_frequencies[key_lower] = 0 - word_frequencies[key_lower] += val + if key not in word_frequencies: + word_frequencies[key] = 0 + word_frequencies[key] += val return word_frequencies diff --git a/templates/admin/release_report_detail.html b/templates/admin/release_report_detail.html index e38cf20a..1fba04c0 100644 --- a/templates/admin/release_report_detail.html +++ b/templates/admin/release_report_detail.html @@ -409,27 +409,48 @@ ul.slack-channels li div a:hover,
-

Library Index

+

Updated Libraries

    {% for library, in_version_library_data in library_index_libraries %} -
  • - {% if library.group == "great" %} - - {% elif library.group == "good" %} - - {% else %} - - {% endif %} - {% if in_version_library_data %} - {{ library.name }} - {% else %} - {{ library.name }} - {% endif %} -
  • + {% if in_version_library_data %} +
  • + {% if library.group == "great" %} + + {% elif library.group == "good" %} + + {% else %} + + {% endif %} + {{ library.name }} +
  • + {% endif %} {% endfor %}
+ +
+
+

Other Libraries

+
    + {% for library, in_version_library_data in library_index_libraries %} + {% if not in_version_library_data %} +
  • + {% if library.group == "great" %} + + {% elif library.group == "good" %} + + {% else %} + + {% endif %} + {{ library.name }} +
  • + {% endif %} + {% endfor %} +
+
+
+ {% if new_libraries %}