Ignore:
Timestamp:
28 Feb 2017, 14:23:09 (8 years ago)
Author:
Henrik Bettermann
Message:

Extend year_range.

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  
    537537
    538538    curr_year = datetime.now().year
    539     year_range = range(curr_year - 10, curr_year + 1)
     539    year_range = range(curr_year - 11, curr_year + 1)
    540540    year_range_tuple = tuple([str(year) for year in year_range])
    541541
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py

    r14574 r14596  
    4444
    4545curr_year = datetime.datetime.now().year
    46 year_range = range(curr_year - 10, curr_year + 1)
     46year_range = range(curr_year - 11, curr_year + 1)
    4747year_range_str = ','.join([str(i) for i in year_range])
    4848
     
    11801180            'current_level,current_session,current_mode,entry_session,'
    11811181            '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'
    11831183            % year_range_str in result
    11841184            )
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r14584 r14596  
    10181018        elif studylevel.total_credits > 50:
    10191019            return _('Maximum credits exceeded.')
    1020         return False
     1020        return
    10211021
    10221022    def getBedCoordinates(self, bedticket):
Note: See TracChangeset for help on using the changeset viewer.