Changeset 6834


Ignore:
Timestamp:
30 Sep 2011, 08:18:01 (13 years ago)
Author:
Henrik Bettermann
Message:

Fix boolean logic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/batching.py

    r6825 r6834  
    9191
    9292    def checkHeaders(self, headerfields, mode='update'):
    93         if not 'reg_number' in headerfields or 'student_id' in headerfields:
     93        if not 'reg_number' in headerfields and not 'student_id' in headerfields:
    9494            raise FatalCSVError(
    9595                "Need at least columns student_id or reg_number for import!")
    96         # Check for double fields...
     96        # Check for fields to be ignored...
    9797        not_ignored_fields = [x for x in headerfields
    9898                              if not x.startswith('--')]
Note: See TracChangeset for help on using the changeset viewer.