• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

iplweb / bpp / 18634744198

19 Oct 2025 07:00PM UTC coverage: 31.618% (-29.9%) from 61.514%
18634744198

push

github

mpasternak
Merge branch 'release/v202510.1270'

657 of 9430 branches covered (6.97%)

Branch coverage included in aggregate %.

229 of 523 new or added lines in 42 files covered. (43.79%)

11303 existing lines in 316 files now uncovered.

14765 of 39346 relevant lines covered (37.53%)

0.38 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
src/bpp/admin_site.py
1
from django.contrib import admin
1✔
2
from django.contrib.auth import get_user_model
1✔
3

4
User = get_user_model()
1✔
5

6

7
class BppAdminSite(admin.AdminSite):
1✔
8
    site_title = "Moduł redagowania BPP"
1✔
9
    site_header = "Moduł redagowania"
1✔
10
    index_title = "Panel Sterowania"
1✔
11

12
    def index(self, request, extra_context=None):
1✔
13
        """
14
        Override index to add dashboard statistics to context
15
        """
UNCOV
16
        from bpp.models import Autor, Jednostka, Wydawnictwo_Ciagle, Wydawnictwo_Zwarte
×
17

UNCOV
18
        extra_context = extra_context or {}
×
UNCOV
19
        extra_context["stats"] = {
×
20
            "total_publications": Wydawnictwo_Ciagle.objects.count()
21
            + Wydawnictwo_Zwarte.objects.count(),
22
            "total_authors": Autor.objects.count(),
23
            "total_units": Jednostka.objects.count(),
24
            "total_users": User.objects.filter(is_active=True).count(),
25
        }
26

UNCOV
27
        return super().index(request, extra_context=extra_context)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc