Commit 01892e22 authored by felix.herrmann's avatar felix.herrmann
Browse files

fix(categories): remove older versions from datasets in category count

parent aefff4e3
......@@ -126,7 +126,11 @@ class Category(models.Model):
return datasets_categories | dataset_main_category
def get_published_datasets_category_all_count(self):
return self.get_published_datasets_category_all().count()
main_published = list()
for ds in self.get_published_datasets_category_all():
if ds.is_main_published():
return len(main_published)
def __str__(self):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment