Ignore:
Timestamp:
28 Feb 2024, 16:03:03 (9 months ago)
Author:
Henrik Bettermann
Message:

New school fees in 2023.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r17606 r17707  
    3434
    3535SCHOOLFEES = dict()
     36
     37schoolfees_path = os.path.join(
     38    os.path.dirname(__file__), 'schoolfees_23.csv')
     39reader = csv.DictReader(open(schoolfees_path, 'rb'))
     40SCHOOLFEES[23] = {line['code']: {item[0]:item[1] for item in line.items()}
     41    for line in reader}
    3642
    3743schoolfees_path = os.path.join(
     
    493499                elif student.entry_session < 2022:
    494500                    schoolfees_dict = SCHOOLFEES[20][p_item]
     501                elif student.entry_session < 2023:
     502                    schoolfees_dict = SCHOOLFEES[22][p_item]
    495503                else:
    496                     schoolfees_dict = SCHOOLFEES[22][p_item]
     504                    schoolfees_dict = SCHOOLFEES[23][p_item]
    497505            except KeyError:
    498506                return _('School fee not yet fixed: p_item = %s' % p_item), None
Note: See TracChangeset for help on using the changeset viewer.