Changeset 10289 for main/waeup.kofa/trunk
- Timestamp:
- 11 Jun 2013, 09:46:34 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/tools/reload_portraits.py
r10288 r10289 70 70 71 71 def final_subfolder(stud_id): 72 # compute new folder name from stud_id (old stud_ids or new stud_ids)72 # compute new folder name from stud_id 73 73 try: 74 74 num = int(stud_id[1:]) 75 if len(stud_id) == 7: 76 # old stud_id 77 num = num / 10000 * 10 78 if len(stud_id) == 8: 79 # new stud_id 80 num = num / 1000 75 81 except ValueError: 76 82 # new old stud_ids 77 83 num = int(stud_id[2:]) 78 num = num / 10000 * 1084 num = num / 10000 * 10 79 85 return '%05d' % num 80 86
Note: See TracChangeset for help on using the changeset viewer.