|
@@ -101,7 +101,7 @@ if $ARGS[0] = 'transfer_legacy_vars':
|
|
|
gs 'uniutil', 'assignments_done', 'reset'
|
|
|
gs 'uniutil', 'semester_result', 'set_passed'
|
|
|
gs 'uniutil', 'passed_semesters', 'set', 0
|
|
|
- else:
|
|
|
+ else
|
|
|
gs 'uniutil', 'semester', 'set', semestr
|
|
|
gs 'uniutil', 'attendance', 'set', lektor
|
|
|
gs 'uniutil', 'assignment_progress', 'set', kursovik
|
|
@@ -141,18 +141,18 @@ if $ARGS[0] = 'check_semester_vs_date':
|
|
|
elseif month <= uniexam_m:
|
|
|
!! the semester is still in progress
|
|
|
RESULT = 0
|
|
|
- else:
|
|
|
+ else
|
|
|
!! expelled
|
|
|
RESULT = -1
|
|
|
end
|
|
|
- else:
|
|
|
+ else
|
|
|
if unilect_sm > uniexam_m or month <= uniexam_m:
|
|
|
!! The semester is still in progress
|
|
|
RESULT = 0
|
|
|
elseif func('uniutil', 'semester_result', 'is_passed') and (uniexam_m > uniexam_mns or month <= uniexam_mns):
|
|
|
!! the semester was passed and the next one is not over
|
|
|
RESULT = 1
|
|
|
- else:
|
|
|
+ else
|
|
|
!! expelled
|
|
|
RESULT = -1
|
|
|
end
|
|
@@ -181,7 +181,7 @@ if $ARGS[0] = 'student':
|
|
|
gs 'uniutil', 'semester', 'update_year'
|
|
|
gs 'uniutil', 'semester_result', 'reset'
|
|
|
gs 'uniutil', 'passed_semesters', 'update'
|
|
|
- else:
|
|
|
+ else
|
|
|
!! date indicates semester is still in progress
|
|
|
gs 'uniutil', 'semester', 'update_year'
|
|
|
end
|
|
@@ -199,7 +199,7 @@ if $ARGS[0] = 'student':
|
|
|
if $ARGS[1] = 'enroll':
|
|
|
gs 'uniutil', 'prepclass', 'unenroll'
|
|
|
gs 'uniutil', 'student', 'set_status', 1
|
|
|
- gs 'uniutil', 'semester', 'set' 1
|
|
|
+ gs 'uniutil', 'semester', 'set', 1
|
|
|
gs 'uniutil', 'semester', 'update_year'
|
|
|
gs 'uniutil', 'scholarship', 'reset'
|
|
|
gs 'uniutil', 'attendance', 'reset'
|
|
@@ -223,7 +223,7 @@ if $ARGS[0] = 'student':
|
|
|
elseif func('uniutil', 'check_semester_vs_date') < 0:
|
|
|
gs 'uniutil', 'student', 'unenroll'
|
|
|
gs 'uniutil', 'student', 'set_status', -2
|
|
|
- else:
|
|
|
+ else
|
|
|
gs 'uniutil', 'student', 'unenroll'
|
|
|
gs 'uniutil', 'student', 'set_status', -3
|
|
|
end
|
|
@@ -441,7 +441,7 @@ if $ARGS[0] = 'lecture':
|
|
|
RESULT = 9
|
|
|
elseif ARGS[2] = 2:
|
|
|
RESULT = 2
|
|
|
- else:
|
|
|
+ else
|
|
|
!! Set to impossible month if it is not semester 1 or 2
|
|
|
RESULT = 13
|
|
|
end
|
|
@@ -452,7 +452,7 @@ if $ARGS[0] = 'lecture':
|
|
|
RESULT = 11
|
|
|
elseif ARGS[2] = 2:
|
|
|
RESULT = 4
|
|
|
- else:
|
|
|
+ else
|
|
|
!! Set to impossible month if it is not semester 1 or 2
|
|
|
RESULT = 0
|
|
|
end
|
|
@@ -464,7 +464,7 @@ if $ARGS[0] = 'lecture':
|
|
|
if unilect_sm <= unilect_em:
|
|
|
!! if semester is in one calendar year
|
|
|
RESULT = month >= unilect_sm and month <= unilect_em
|
|
|
- else:
|
|
|
+ else
|
|
|
!! if semester continues through New Years
|
|
|
RESULT = month >= unilect_sm or month <= unilect_em
|
|
|
end
|
|
@@ -507,7 +507,7 @@ if $ARGS[0] = 'exam':
|
|
|
RESULT = 12
|
|
|
elseif ARGS[2] = 2:
|
|
|
RESULT = 5
|
|
|
- else:
|
|
|
+ else
|
|
|
!! Set to impossible month if it is not semester 1 or 2
|
|
|
RESULT = 0
|
|
|
end
|
|
@@ -618,10 +618,10 @@ if $ARGS[0] = 'exam_outcome':
|
|
|
if $ARGS[1] = 'passed_honors':
|
|
|
gs 'uniutil', 'semester_result', 'set_passed'
|
|
|
gs 'uniutil', 'scholarship', 'set', func('uniutil', 'scholarship', 'honors_value')
|
|
|
- elseif $ARGS[1] = 'passed'
|
|
|
+ elseif $ARGS[1] = 'passed':
|
|
|
gs 'uniutil', 'semester_result', 'set_passed'
|
|
|
gs 'uniutil', 'scholarship', 'reset'
|
|
|
- else:
|
|
|
+ else
|
|
|
gs 'uniutil', 'semester_result', 'set_failed'
|
|
|
gs 'uniutil', 'scholarship', 'reset'
|
|
|
end
|