Skip to content
Snippets Groups Projects
Commit 1b9b5cac authored by Hague Matthew UXAC009's avatar Hague Matthew UXAC009
Browse files

add(timetabling): print out overlaps sorted order

parent 86a0da24
Branches
No related tags found
No related merge requests found
......@@ -104,11 +104,11 @@ for year in cals:
overlap_entry = frozenset([event.name, overlap.name])
if true_over and overlap_entry not in overlaps:
overlaps.add(overlap_entry)
overlaps_full.add(frozenset([
overlaps_full.add(tuple(sorted([
f"{event.name}@{event.begin.strftime('%a %H:%M')}",
f"{overlap.name}@{overlap.begin.strftime('%a %H:%M')}"
]))
for overlap in overlaps_full:
])))
for overlap in sorted(overlaps_full):
print("OVERLAP:")
for detail in overlap:
print(" ", detail)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment