Changeset 17930
- Timestamp:
- 26 Sep 2024, 19:52:39 (3 months ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r17915 r17930 34 34 35 35 SCHOOLFEES = dict() 36 37 schoolfees_path = os.path.join( 38 os.path.dirname(__file__), 'schoolfees_24.csv') 39 reader = csv.DictReader(open(schoolfees_path, 'rb')) 40 SCHOOLFEES[24] = {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( … … 502 508 elif student.entry_session < 2023: 503 509 schoolfees_dict = SCHOOLFEES[22][p_item] 510 elif student.entry_session < 2024: 511 schoolfees_dict = SCHOOLFEES[23][p_item] 504 512 else: 505 schoolfees_dict = SCHOOLFEES[2 3][p_item]513 schoolfees_dict = SCHOOLFEES[24][p_item] 506 514 except KeyError: 507 515 return _('School fee not yet fixed: p_item = %s' % p_item), None
Note: See TracChangeset for help on using the changeset viewer.