Browse Source

[fixed] The order of the clauses were wrong wich could make the university start a week early is the 21 of Agust is a Monday.

bgkjdgbizgblzdgbr 2 years ago
parent
commit
a0510f9142
1 changed files with 4 additions and 4 deletions
  1. 4 4
      locations/uni_lessons.qsrc

+ 4 - 4
locations/uni_lessons.qsrc

@@ -8,10 +8,6 @@
 if $ARGS[0] = 'cikl':
 !! Setting the the weeks in the university semester and makeing sure that the gades are calculated at the right times
 
-	if university['enrolled_in_semester'] > university['semester_passed'] and university['semester_week'] = 0 and (month = 8 or month = 1) and (day - week) >= 20:
-		university['semester_week'] = -1
-	end
-
 	if week = 1:
 		if university['semester_week'] = -1:
 			university['semester_week'] = 1
@@ -58,6 +54,10 @@ if $ARGS[0] = 'cikl':
 			killvar 'passed_count'
 		end
 	end
+
+	if university['enrolled_in_semester'] > university['semester_passed'] and university['semester_week'] = 0 and (month = 8 or month = 1) and (day - week) >= 20:
+		university['semester_week'] = -1
+	end
 end
 
 if $ARGS[0] = 'short_break':