Changeset 13391 for main/waeup.kwarapoly


Ignore:
Timestamp:
5 Nov 2015, 14:34:22 (9 years ago)
Author:
Henrik Bettermann
Message:

Increase existing counters (self-repair).

Location:
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py

    r13390 r13391  
    369369        next_integer = getattr(
    370370            dep, 'next_matric_dict', {}).get(entry_session, 10)
     371
     372        #############################################
     373        # self-repair, can be removed after a while
     374        if next_integer == 2:
     375            next_integer == 10
     376            dep.next_matric_dict[entry_session] = 10
     377            dep._p_changed = True
     378        #############################################
     379
    371380        entry_year = entry_session - 100*(entry_session/100)
    372381        matric_number = "%s/%s/%s/%s/%03d" % (
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/university/tests.py

    r12911 r13391  
    4949            'code,faculty_code,title,title_prefix,users_with_local_roles,'
    5050            'next_matric_dict\r\n'
    51             'dep1,fac1,Unnamed Department,department,[],{2015: 2}\r\n'
     51            'dep1,fac1,Unnamed Department,department,[],{2015: 11}\r\n'
    5252            )
    5353        return
Note: See TracChangeset for help on using the changeset viewer.