Ignore:
Timestamp:
8 Mar 2022, 08:23:06 (3 years ago)
Author:
Henrik Bettermann
Message:

Remove condition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/browser.py

    r16848 r16863  
    189189    def _student_per_school_exceeded(self, data):
    190190        container = self.context.__parent__
    191         counter = 0
     191        counter = 1
    192192        for appl in container.values():
    193             if appl.state in (SUBMITTED, ADMITTED, NOT_ADMITTED, CREATED):
    194                 if appl.school1 == self.context.school1 \
    195                     or appl.school1 == data.get('school1'):
     193            if appl != self.context \
     194                and appl.state in (SUBMITTED, ADMITTED, NOT_ADMITTED, CREATED):
     195                if appl.school1 == data.get('school1'):
    196196                    counter += 1
    197                     if appl != self.context \
    198                         and (appl.subj_comb == self.context.subj_comb \
    199                             or appl.subj_comb == data.get('subj_comb')):
     197                    if appl.subj_comb == data.get('subj_comb'):
    200198                        return True
    201199                if counter == 10:
Note: See TracChangeset for help on using the changeset viewer.