From 48a01a28619b62b2a441e0d7fd0968419c0d627c Mon Sep 17 00:00:00 2001 From: Interitio Date: Wed, 11 Jun 2025 19:20:34 +1000 Subject: [PATCH] fix: Typo in raid event visitor_count field. --- src/routes/events.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/routes/events.py b/src/routes/events.py index 8e55797..cc0d682 100644 --- a/src/routes/events.py +++ b/src/routes/events.py @@ -146,7 +146,7 @@ class Event: typparams['message'] = kwargs.get('message') case EventType.RAID: typtab = data.raid_events - typparams['viewer_count'] = kwargs.get('viewer_count') + typparams['visitor_count'] = kwargs.get('viewer_count') case EventType.SUBSCRIBER: typtab = data.subscriber_events typparams['tier'] = kwargs['tier'] @@ -220,9 +220,8 @@ class Event: typparams[key] = kwargs[key] case EventType.RAID: typtab = data.raid_events - for key in ('viewer_count',): - if key in kwargs: - typparams[key] = kwargs[key] + if 'viewer_count' in kwargs: + typparams['visitor_count'] = 'viewer_count' case EventType.SUBSCRIBER: typtab = data.subscriber_events for key in ('tier', 'subscribed_length', 'message'):