From efb8711af68433f97c82da75cf0951d92a2438be Mon Sep 17 00:00:00 2001
From: Tue Herlau <tuhe@dtu.dk>
Date: Sat, 17 Feb 2024 00:19:02 +0100
Subject: [PATCH] updatse

---
 src/coursebox/core/info.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/coursebox/core/info.py b/src/coursebox/core/info.py
index 2eb65c5..2123b5d 100644
--- a/src/coursebox/core/info.py
+++ b/src/coursebox/core/info.py
@@ -94,7 +94,7 @@ def first_day_of_class(info):
     if continuing_education():
         first_day_of_class = datetime(year=year(), month=info['first-month'], day=info['first-day'], hour=info['hour'][0], minute=info['minute'][0])
     else:
-        mo_first = datetime(year=year(), month=1 if semester() == 'spring' else 8, day=1, hour=13, minute=0)
+        mo_first = datetime(year=year(), month=1 if semester() == 'spring' else 8, day=1, hour=info.get('lecture_start_hour', 13), minute=0)
         # scroll to monday
         while mo_first.weekday() != 0: #strftime('%A') is not 'Monday':
             mo_first -= timedelta(days=1)
@@ -445,7 +445,7 @@ def class_information(verbose=False,
         n = l['number']
         date = l['date']
 
-        dd = timedelta(days=l.get('show_solutions_after', 1))
+        dd = timedelta(days=l.get('show_solutions_after', 1), hours=4)
         d['release_rules'][str(n)] = dict(start=date+dd, end=date+timedelta(days=2000))
     # Update with section information.
     if sections is not None:
-- 
GitLab