File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -737,15 +737,17 @@ def overlaps_with(self, other) -> bool:
737
737
return self .end_date > other .start_date and other .end_date > self .start_date
738
738
739
739
def get_conflicting_content (self ) -> list ["Proposal" ]:
740
- # I gave up trying to do this as SQL via SQLAlchemy's filter expressions.
740
+ # This is intended for attendee content that must have a scheduled time and duration
741
741
return [
742
742
p
743
743
for p in Proposal .query .filter (
744
744
Proposal .id != self .id ,
745
745
Proposal .scheduled_venue_id == self .scheduled_venue_id ,
746
746
Proposal .scheduled_time >= self .start_date ,
747
+ Proposal .scheduled_duration != None ,
747
748
).all ()
748
- if p .overlaps_with (self )
749
+ if p .scheduled_time > self .scheduled_time + self .scheduled_duration and
750
+ p .scheduled_time + p .scheduled_duration > self .scheduled_time
749
751
]
750
752
751
753
@property
Original file line number Diff line number Diff line change 70
70
< ul class ="dropdown-menu ">
71
71
{{ menuitem("Feature Flags", ".feature_flags") }}
72
72
{{ menuitem("Site States", ".site_states") }}
73
- {{ menuitem("Schedule iCal Feeds", ".schedule_feeds") }}
74
73
{{ menuitem("Schedule Messages", ".all_messages") }}
75
74
{{ menuitem("Payments", ".payment_config_verify") }}
76
75
{{ menuitem("Scheduled Tasks", ".scheduled_tasks") }}
You can’t perform that action at this time.
0 commit comments