    lessons, update the individual entries in the `ModulesSelected` global."
   [affectedDaysSet]
   (doseq [day affectedDaysSet]
-    (let [ttDay (get-timetable-day day)]
+    (let [ttDay (timetable-get-day day)]
       (doseq [[rowIdx ttRow] (map vector (range (count ttDay)) ttDay)]
         (doseq [[ttLessonInfo _] ttRow]
           (let [moduleCode  (:moduleCode ttLessonInfo)

  "Returns the total number of rows in the given 0-indexed day in the Timetable,
   where 0 = Monday, 1 = Tuesday, until 4 = Friday."
  [day]
  (count (get-timetable-day day)))

(def ^{:doc     "HTML string for the <td> elements in a <tr> on the Timetable
                 Builder page"

        rowNum     (:rowNum removedAugTTLessonInfo)
        startTime  (:startTime removedAugTTLessonInfo)
        endTime    (:endTime removedAugTTLessonInfo)
        ttDay      (timetable-get-day day)

        ; This is the time range freed up by removal of the lesson
        [lowTimeIdx highTimeIdx]
