From 82e2beb6225965b749b54b528762eeabcf7ad36e Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Sat, 18 Apr 2020 14:00:14 +0200
Subject: [PATCH] Fix meeting box height

---
 app/zoom.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/zoom.py b/app/zoom.py
index f77e5d4..5a9e8ed 100644
--- a/app/zoom.py
+++ b/app/zoom.py
@@ -188,7 +188,7 @@ def main_page():
                 "x": row_offset + i * room_box_width + 4 + 10*int(coll),
                 "y": int(start / 3600. * room_hour_height),
                 "w": room_box_width - 7 - 10*int(coll),
-                "h": int((end - start) / 3600 * room_hour_height),
+                "h": int((end - start) / 3600 * room_hour_height) - 1,
                 "start": time.strftime("%H:%M", time.localtime(start_t)),
                 "end": time.strftime("%H:%M", time.localtime(end_t)),
                 "topic": r.topic,
-- 
GitLab