busy_beaver/apps/upcoming_events/upcoming_events.py
def _next_event_attachment(event: EventDetails) -> dict:
    """Make a Slack attachment for the event."""
    text = (
        f"*<!date^{event.start_epoch}^{{time}} "
        f"{{date_long}}|no date>* at {event.venue}"
    )
    return {
        "mrkdwn_in": ["text", "pretext"],
        "pretext": "*Next Event:*",
        "title": event.name,
        "title_link": event.url,
        "fallback": f"{event.name}: {event.url}",
        "text": text,
        "color": "#008952",
    }
Make a Slack attachment for the event.
Make a Slack attachment for the event.
Make a Slack attachment for the event .
def _next_event_attachment(event: EventDetails) -> dict:
    text = (
        f"*<!date^{event.start_epoch}^{{time}} "
        f"{{date_long}}|no date>* at {event.venue}"
    )
    return {
        "mrkdwn_in": ["text", "pretext"],
        "pretext": "*Next Event:*",
        "title": event.name,
        "title_link": event.url,
        "fallback": f"{event.name}: {event.url}",
        "text": text,
        "color": "#008952",
    }
def _next_event_attachment ( event : EventDetails ) -> dict : text = ( f"*<!date^{event.start_epoch}^{{time}} " f"{{date_long}}|no date>* at {event.venue}" ) return { "mrkdwn_in" : [ "text" , "pretext" ] , "pretext" : "*Next Event:*" , "title" : event . name , "title_link" : event . url , "fallback" : f"{event.name}: {event.url}" , "text" : text , "color" : "#008952" , }
Make a Slack attachment for the event.
Make a Slack attachment for the event .
"""Make a Slack attachment for the event."""
event
EventDetails