Skip to content

Commit

Permalink
feat(program_v2): in default importer, hide internal categories
Browse files Browse the repository at this point in the history
  • Loading branch information
japsu committed Jun 16, 2024
1 parent c6c68f2 commit be8982a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/program_v2/importers/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_dimensions(self) -> list[DimensionDTO]:
title={self.language: category.title},
color=DEFAULT_COLORS.get(category.style, ""),
)
for category in Category.objects.filter(event=self.event)
for category in Category.objects.filter(event=self.event, public=True)
],
),
DimensionDTO(
Expand Down Expand Up @@ -196,6 +196,7 @@ def get_eligible_programmes(self, queryset: QuerySet[Programme]) -> QuerySet[Pro
state="published",
start_time__isnull=False,
length__isnull=False,
category__public=True,
).order_by("id")

program_batch_size = 100
Expand Down

0 comments on commit be8982a

Please sign in to comment.