Skip to content

Commit

Permalink
[#2540] Simplify logic for calculating all requirements passed
Browse files Browse the repository at this point in the history
  • Loading branch information
pbanaszkiewicz committed Nov 7, 2023
1 parent ea06443 commit 4577c28
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,7 @@ def instructor_training_completed_not_badged_strategy(person: Person) -> Strateg
)
)

all_requirements_passed = (
bool(person_annotated.passed_training)
and bool(person_annotated.passed_get_involved)
and bool(person_annotated.passed_welcome)
and bool(person_annotated.passed_demo)
)
all_requirements_passed = bool(person_annotated.instructor_eligible)

ct = ContentType.objects.get_for_model(person) # type: ignore
has_email_scheduled = ScheduledEmail.objects.filter(
Expand Down

0 comments on commit 4577c28

Please sign in to comment.