Skip to content

Commit 75b4bfb

Browse files
authored
Better handling of no reservations
1 parent 3075581 commit 75b4bfb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Calendar/Calendar.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,10 @@ def time_to_vw(dt):
384384
html.append(" | <strong>Rooms</strong>")
385385
html.append("</div>")
386386
html.append("</div>")
387+
388+
if len(reservations) == 0:
389+
html.append("<div class='nav-c'><strong>No Reservations</strong></div>")
390+
return "\n".join(html)
387391

388392
html.append("<div class='gantt-wrapper'>")
389393

0 commit comments

Comments
 (0)