X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/73ce961f14509aabfa26536f847afd28111029c6..0bd2c341a8b55f817c2e193a6c4658d52ef95961:/apps/reporting/templatetags/reporting_stats.py diff --git a/apps/reporting/templatetags/reporting_stats.py b/apps/reporting/templatetags/reporting_stats.py index 6f20c087c..ee9a7bf74 100755 --- a/apps/reporting/templatetags/reporting_stats.py +++ b/apps/reporting/templatetags/reporting_stats.py @@ -50,11 +50,11 @@ def count_books_all(): @register_counter def count_books(): - return Book.objects.exclude(html_file='').count() + return Book.objects.filter(children=None).count() @register_counter def count_books_parent(): - return Book.objects.filter(html_file='').count() + return Book.objects.exclude(children=None).count() @register_counter def count_books_root():