We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fb4d0a3 + 9aa5fc8 commit 04e784eCopy full SHA for 04e784e
1 file changed
src/pycamp_bot/models.py
@@ -45,6 +45,9 @@ def is_busy(self, from_time, to_time):
45
project_presentation_slots = Slot.select().where(Slot.current_wizard == self)
46
for slot in project_presentation_slots:
47
# https://stackoverflow.com/a/13403827/1161156
48
+ # Fix-patch for int tipe
49
+ if isinstance(slot.start, int):
50
+ slot.start = from_time.replace(hour=slot.start)
51
latest_start = max(from_time, slot.start)
52
earliest_end = min(to_time, slot.get_end_time())
53
if latest_start <= earliest_end: # Overlap
0 commit comments