]> Devi Nivas Git - 4180kiosk.git/commitdiff
Fix bug with strptime master
authorAdvaith Menon <noreply-git@bp4k.net>
Sat, 31 Jan 2026 00:12:59 +0000 (19:12 -0500)
committerAdvaith Menon <noreply-git@bp4k.net>
Sat, 31 Jan 2026 00:12:59 +0000 (19:12 -0500)
ohdisp/model.py

index 016a1d6dee1fc58027c8f99b4b4a612e7dab1308..b7a8f766bcb6fbd851717a10d95109f580b7631f 100644 (file)
@@ -20,12 +20,12 @@ class QueueModel(object):
         self._cfg = config;
         self._funcs = tuple(self.parse_cfg(self._cfg.site.api_q_element));
 
         self._cfg = config;
         self._funcs = tuple(self.parse_cfg(self._cfg.site.api_q_element));
 
-        self.oh_start = datetime.time.strptime(
+        self.oh_start = datetime.datetime.strptime(
                 self._cfg.site.oh_start,
                 self._cfg.site.oh_start,
-                "%H:%M");
-        self.oh_end = datetime.time.strptime(
+                "%H:%M").time();
+        self.oh_end = datetime.datetime.strptime(
                 self._cfg.site.oh_end,
                 self._cfg.site.oh_end,
-                "%H:%M");
+                "%H:%M").time();
 
     def fetch(self):
         resp = urllib3.request(
 
     def fetch(self):
         resp = urllib3.request(