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
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@
###############################################################################
# Settings

TITO_EVENT = "write-the-docs-portland-2025"
TITO_EVENT = "write-the-docs-berlin-2025"
VENUELESS_PUBLIC_URL = "https://writethedocs.venueless.events/" # include trailing /
VENUELESS_EVENT_SLUG = "wtd25"
# Pull this from the websocket path in a browser
VENUELESS_EVENT_SLUG = "wtd252"
# If not listed in here, ticket is skipped
ACTIVITY_NAME_TO_TRAIT = {
"conference": ["onsite"],
Expand Down Expand Up @@ -74,7 +75,10 @@
headers=headers,
)

for ticket in tickets_response.json()["tickets"]:
tito_tickets = tickets_response.json()["tickets"]
print(f"Found {len(tito_tickets)} tickets.")

for ticket in tito_tickets:
ticket_slug = ticket["slug"]
ticket_reference = ticket["reference"]
venueless_meta = ticket.get("metadata").get("venueless") if ticket.get("metadata") else None
Expand All @@ -88,11 +92,11 @@
activity_name = ticket["activities"][0]["name"].lower()
traits += ACTIVITY_NAME_TO_TRAIT[activity_name]
except (IndexError, KeyError):
continue
pass

is_staff = ticket["release"]["title"] == "Staff Ticket"
print(f'Found ticket {ticket["name"]}: {ticket_reference=} {traits=} {venueless_meta=} {is_staff=}')
if not venueless_meta and is_staff:
if not venueless_meta:
pending_tickets.append((ticket_slug, traits))

VENUELESS_WSS_URL = f"{VENUELESS_PUBLIC_URL.replace('https', 'wss')}ws/world/{VENUELESS_EVENT_SLUG}/"
Expand Down