- Timestamp:
- 28 Feb 2024, 16:03:03 (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r17606 r17707 34 34 35 35 SCHOOLFEES = dict() 36 37 schoolfees_path = os.path.join( 38 os.path.dirname(__file__), 'schoolfees_23.csv') 39 reader = csv.DictReader(open(schoolfees_path, 'rb')) 40 SCHOOLFEES[23] = {line['code']: {item[0]:item[1] for item in line.items()} 41 for line in reader} 36 42 37 43 schoolfees_path = os.path.join( … … 493 499 elif student.entry_session < 2022: 494 500 schoolfees_dict = SCHOOLFEES[20][p_item] 501 elif student.entry_session < 2023: 502 schoolfees_dict = SCHOOLFEES[22][p_item] 495 503 else: 496 schoolfees_dict = SCHOOLFEES[2 2][p_item]504 schoolfees_dict = SCHOOLFEES[23][p_item] 497 505 except KeyError: 498 506 return _('School fee not yet fixed: p_item = %s' % p_item), None
Note: See TracChangeset for help on using the changeset viewer.