Changeset 17446 for main/waeup.aaue/trunk/src/waeup/aaue/students
- Timestamp:
- 23 Jun 2023, 04:15:41 (17 months ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r17445 r17446 51 51 reader = csv.DictReader(open(schoolfees_path, 'rb')) 52 52 SCHOOLFEES_19 = {item['code']:(item['tuition'], item.values()) for item in reader} 53 54 schoolfees_path = os.path.join( 55 os.path.dirname(__file__), 'schoolfees_14.csv') 56 reader = csv.DictReader(open(schoolfees_path, 'rb')) 57 SCHOOLFEES_14 = {item['code']:(item['tuition'], item.values()) for item in reader} 58 59 schoolfees_path = os.path.join( 60 os.path.dirname(__file__), 'schoolfees_13.csv') 61 reader = csv.DictReader(open(schoolfees_path, 'rb')) 62 SCHOOLFEES_13 = {item['code']:(item['tuition'], item.values()) for item in reader} 63 64 schoolfees_path = os.path.join( 65 os.path.dirname(__file__), 'schoolfees_12.csv') 66 reader = csv.DictReader(open(schoolfees_path, 'rb')) 67 SCHOOLFEES_12 = {item['code']:(item['tuition'], item.values()) for item in reader} 53 68 54 69 acceptancefees_path = os.path.join( … … 400 415 return _('Study course data are incomplete.'), None 401 416 try: 402 if student.entry_session < 2020: 417 if student.entry_session < 2013: 418 schoolfees = SCHOOLFEES_12[student.certcode] 419 elif student.entry_session < 2014: 420 schoolfees = SCHOOLFEES_13[student.certcode] 421 elif student.entry_session < 2015: 422 schoolfees = SCHOOLFEES_14[student.certcode] 423 elif student.entry_session < 2020: 403 424 schoolfees = SCHOOLFEES_19[student.certcode] 404 425 elif student.entry_session < 2021:
Note: See TracChangeset for help on using the changeset viewer.