Changeset 14596
- Timestamp:
- 28 Feb 2017, 14:23:09 (8 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/export.py
r14443 r14596 537 537 538 538 curr_year = datetime.now().year 539 year_range = range(curr_year - 1 0, curr_year + 1)539 year_range = range(curr_year - 11, curr_year + 1) 540 540 year_range_tuple = tuple([str(year) for year in year_range]) 541 541 -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r14574 r14596 44 44 45 45 curr_year = datetime.datetime.now().year 46 year_range = range(curr_year - 1 0, curr_year + 1)46 year_range = range(curr_year - 11, curr_year + 1) 47 47 year_range_str = ','.join([str(i) for i in year_range]) 48 48 … … 1180 1180 'current_level,current_session,current_mode,entry_session,' 1181 1181 'reg_number,%s\r\nA111111,234,Anna M. Tester,created,CERT1,NA,NA,0,' 1182 '200,2012,ug_ft,2010,123,,,,, 12.12,14.14,waived,,,,\r\n'1182 '200,2012,ug_ft,2010,123,,,,,,12.12,14.14,waived,,,,\r\n' 1183 1183 % year_range_str in result 1184 1184 ) -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r14584 r14596 1018 1018 elif studylevel.total_credits > 50: 1019 1019 return _('Maximum credits exceeded.') 1020 return False1020 return 1021 1021 1022 1022 def getBedCoordinates(self, bedticket):
Note: See TracChangeset for help on using the changeset viewer.