data templates corrected
This commit is contained in:
@@ -37,7 +37,7 @@ def generate_student_wise_templates(sessions, data, output_dir):
|
||||
for (day, slot_index), entries in raw_by_day_slot.items():
|
||||
if len(entries) > 1:
|
||||
course_list = ", ".join(
|
||||
f'{e["course_id"]} ({e["course_type"]}) with {e["instructor_name"]} in {e["room_id"]}'
|
||||
f'{e["course_id"]} Sec {e["section_id"]} ({e["course_type"]}) with {e["instructor_name"]} in {e["room_id"]}'
|
||||
for e in entries
|
||||
)
|
||||
log_error(
|
||||
@@ -52,7 +52,7 @@ def generate_student_wise_templates(sessions, data, output_dir):
|
||||
return ""
|
||||
s = entries[0]
|
||||
tag = " (Lab)" if s["course_type"] == "lab" else (" (General)" if s["is_general"] else "")
|
||||
text = f'{s["course_name"]}{tag}\n{s["instructor_name"]}\n{s["room_id"]}'
|
||||
text = f'{s["course_name"]}{tag} [Sec {s["section_id"]}]\n{s["instructor_name"]}\n{s["room_id"]}'
|
||||
if len(entries) > 1:
|
||||
text = "CONFLICT!\n" + text
|
||||
return text
|
||||
|
||||
Reference in New Issue
Block a user