Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apps/schedule/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
from ..config import config
from . import event_tz

_drop_in_info = (
"\n\nThis is a drop-in workshop, so you can arrive at any point during "

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on other pages, it looks like \n\n should do a paragraph break, but I don't have a website build running locally to check

"the session to complete a short activity."
)


class OccurrenceDict(TypedDict):
occurrence_num: int
Expand Down Expand Up @@ -123,6 +128,8 @@ def _get_schedule_item_dict(filter: ScheduleFilter, schedule_item: ScheduleItem)
sid["age_range"] = (schedule_item.attributes.age_range or "").strip()
# participant_count is only on proposals
sid["drop_in"] = schedule_item.attributes.drop_in
if schedule_item.attributes.drop_in:
sid["description"] += _drop_in_info

if isinstance(schedule_item.attributes, TalkAttributes | WorkshopAttributes):
sid["family_friendly"] = schedule_item.attributes.family_friendly
Expand Down
Loading