You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because we introduced potential times after overlaps_with, and when we did every proposal would have a potential time. These days this is very occasionally no longer true if someone moves something in the schedule tweaker.
The only places this surfaces is in the clashfinder or in the attendee content interface to warn them when they are scheduling something against content in their village.
Arguably attendees shouldn't know about this, but we should pay attention to it in the clashfinder. Not sure what the "correct" fix is. This is in no way critical.
The text was updated successfully, but these errors were encountered:
After taking a quick look the reason the clashfinder is currently broken is entirely because this function is wrong.
if prop1.overlaps_with(prop2):
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/models/cfp.py", line 735, in overlaps_with
return self.end_date > other.start_date and other.end_date > self.start_date
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'datetime.datetime' and 'NoneType'
Slightly puzzled as to how this can even happen though - the only content visible on the lineup right now is content that has been scheduled and thus should have start and end times. The clashfinder only looks at things that have been favourited, which means they have to be on the schedule. Regardless, it sucks.
proposal.overlaps_with is clearly incorrect when one proposal has a potential time and the other does not:
Website/models/cfp.py
Lines 728 to 735 in c417d32
This is because we introduced potential times after overlaps_with, and when we did every proposal would have a potential time. These days this is very occasionally no longer true if someone moves something in the schedule tweaker.
The only places this surfaces is in the clashfinder or in the attendee content interface to warn them when they are scheduling something against content in their village.
Arguably attendees shouldn't know about this, but we should pay attention to it in the clashfinder. Not sure what the "correct" fix is. This is in no way critical.
The text was updated successfully, but these errors were encountered: