Skip to content

Commit

Permalink
Display candidates until results are published
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Nov 17, 2024
1 parent d0e76d0 commit c3f84df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/hub/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,7 @@ def get_context_data(self, **kwargs):
context["current_search"] = self.request.GET.get("q", "")

context["should_display_candidates"] = False
if FeatureFlag.flag_enabled(FLAG_CHOICES.enable_candidate_voting) or FeatureFlag.flag_enabled(
FLAG_CHOICES.enable_candidate_supporting
):
if not FeatureFlag.flag_enabled(FLAG_CHOICES.enable_results_display):
context["should_display_candidates"] = True

current_domain = self.request.GET.get("domain")
Expand Down

0 comments on commit c3f84df

Please sign in to comment.