mirror of
https://github.com/boostorg/website-v2.git
synced 2026-01-19 04:42:17 +00:00
Filter out libraries with 0 commits from release report. (#1451)
This commit is contained in:
@@ -549,6 +549,9 @@ class CreateReportForm(CreateReportFullForm):
|
||||
self._get_library_versions(library_order, version),
|
||||
)
|
||||
]
|
||||
library_data = [
|
||||
x for x in library_data if x["version_count"]["commit_count"] > 0
|
||||
]
|
||||
top_contributors = self._get_top_contributors_for_version()
|
||||
# total messages sent during this release (version)
|
||||
total_mailinglist_count = EmailData.objects.filter(version=version).aggregate(
|
||||
|
||||
@@ -116,7 +116,13 @@
|
||||
<div>{{ item.library.description }}</div>
|
||||
</div>
|
||||
<div class="flex flex-col gap-y-4">
|
||||
<h4>There were {{ item.version_count.commit_count }} commits in release {{ version.display_name }}</h4>
|
||||
<h4>
|
||||
There
|
||||
{{ item.version_count.commit_count|pluralize:"was,were" }}
|
||||
{{ item.version_count.commit_count }}
|
||||
commit{{ item.version_count.commit_count|pluralize }}
|
||||
in release {{ version.display_name }}
|
||||
</h4>
|
||||
{% with insertions=item.library_version.insertions deletions=item.library_version.deletions %}
|
||||
<div>
|
||||
{{ insertions|intcomma }} line{{ insertions|pluralize }} added, {{ deletions|intcomma }} line{{ deletions|pluralize }} removed
|
||||
|
||||
Reference in New Issue
Block a user