Ignore:
Timestamp:
3 Aug 2012, 21:21:32 (12 years ago)
Author:
Henrik Bettermann
Message:

Fix if statement. PG students are in level 999. We can use the is_postgrad property.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py

    r8955 r9081  
    241241        if student.current_mode.endswith('_ft'):
    242242            #post-grad full-time students of all faculties
    243             if studycourse.current_level in ('700','710','800','810','900','910'):
     243            if student.is_postgrad:
    244244                xmldict['institution_acct'] = '1012842833'
    245245                xmldict['institution_bank_id'] = '117'
     
    259259        elif student.current_mode.endswith('_pt'):
    260260            #post-grad part-time students of all faculties
    261             if studycourse.current_level in ('700','710','800','810','900','910'):
     261            if student.is_postgrad:
    262262                xmldict['institution_acct'] = '0023708207'
    263263                xmldict['institution_bank_id'] = '72'
Note: See TracChangeset for help on using the changeset viewer.