Skip to content

Description and Summary are the same #58

@emilrueh

Description

@emilrueh

The summary returned by the event data via event id shows up twice in the data.
It also takes place of the description therefore not providing a huge amount of event data to the user of the API and SDK.

Here is a script showcasing the bug:

from eventbrite import Eventbrite


def create_eventbrite_object(private_token):
    return Eventbrite(oauth_token=private_token)


def get_event_data(eventbrite, event_id):
    try:
        event = eventbrite.get_event(event_id)
        return event
    except Exception as e:
        print(
            f"Could not get event data for event_id: {event_id}, due to exception: {e}"
        )
        return None


eventbrite = create_eventbrite_object("YOUR_PRIVATE_TOKEN")  # add your eb private token

event_id = 000000000000  # add any event id

event_data = get_event_data(eventbrite, event_id)

print(event_data["description"]["text"])
print(event_data["summary"])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions