Skip to content

Commit e4e2e18

Browse files
committed
Remove link
1 parent cf1a106 commit e4e2e18

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

models/cfp.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,15 +737,17 @@ def overlaps_with(self, other) -> bool:
737737
return self.end_date > other.start_date and other.end_date > self.start_date
738738

739739
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
741741
return [
742742
p
743743
for p in Proposal.query.filter(
744744
Proposal.id != self.id,
745745
Proposal.scheduled_venue_id == self.scheduled_venue_id,
746746
Proposal.scheduled_time >= self.start_date,
747+
Proposal.scheduled_duration != None,
747748
).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
749751
]
750752

751753
@property

templates/admin/_nav.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
<ul class="dropdown-menu">
7171
{{ menuitem("Feature Flags", ".feature_flags") }}
7272
{{ menuitem("Site States", ".site_states") }}
73-
{{ menuitem("Schedule iCal Feeds", ".schedule_feeds") }}
7473
{{ menuitem("Schedule Messages", ".all_messages") }}
7574
{{ menuitem("Payments", ".payment_config_verify") }}
7675
{{ menuitem("Scheduled Tasks", ".scheduled_tasks") }}

0 commit comments

Comments
 (0)