From 8fb0a50897978dfddd99341af38d00ae81b16e5b Mon Sep 17 00:00:00 2001 From: Advaith Menon Date: Fri, 30 Jan 2026 19:12:59 -0500 Subject: [PATCH] Fix bug with strptime --- ohdisp/model.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ohdisp/model.py b/ohdisp/model.py index 016a1d6..b7a8f76 100644 --- a/ohdisp/model.py +++ b/ohdisp/model.py @@ -20,12 +20,12 @@ class QueueModel(object): 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, - "%H:%M"); - self.oh_end = datetime.time.strptime( + "%H:%M").time(); + self.oh_end = datetime.datetime.strptime( self._cfg.site.oh_end, - "%H:%M"); + "%H:%M").time(); def fetch(self): resp = urllib3.request( -- 2.47.3