Skip to content

Commit

Permalink
Remove link
Browse files Browse the repository at this point in the history
  • Loading branch information
marksteward committed May 23, 2024
1 parent cf1a106 commit e4e2e18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions models/cfp.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,15 +737,17 @@ def overlaps_with(self, other) -> bool:
return self.end_date > other.start_date and other.end_date > self.start_date

def get_conflicting_content(self) -> list["Proposal"]:
# I gave up trying to do this as SQL via SQLAlchemy's filter expressions.
# This is intended for attendee content that must have a scheduled time and duration
return [
p
for p in Proposal.query.filter(
Proposal.id != self.id,
Proposal.scheduled_venue_id == self.scheduled_venue_id,
Proposal.scheduled_time >= self.start_date,
Proposal.scheduled_duration != None,
).all()
if p.overlaps_with(self)
if p.scheduled_time > self.scheduled_time + self.scheduled_duration and
p.scheduled_time + p.scheduled_duration > self.scheduled_time
]

@property
Expand Down
1 change: 0 additions & 1 deletion templates/admin/_nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
<ul class="dropdown-menu">
{{ menuitem("Feature Flags", ".feature_flags") }}
{{ menuitem("Site States", ".site_states") }}
{{ menuitem("Schedule iCal Feeds", ".schedule_feeds") }}
{{ menuitem("Schedule Messages", ".all_messages") }}
{{ menuitem("Payments", ".payment_config_verify") }}
{{ menuitem("Scheduled Tasks", ".scheduled_tasks") }}
Expand Down

0 comments on commit e4e2e18

Please sign in to comment.