Skip to content

Commit 6f5616c

Browse files
committed
fixed end_poll endpoint and bumped version to 2.5.7
1 parent 30c50ee commit 6f5616c

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

docs/changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
Changelog
44
=====================================
55

6+
****************
7+
Version 2.5.7
8+
****************
9+
10+
- Fixed the End Poll Endpoint
11+
612
****************
713
Version 2.5.6
814
****************

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name=twitchAPI
3-
version=2.5.6
3+
version=2.5.7
44
url=https://github.com/Teekeks/pyTwitchAPI
55
author=Lena "Teekeks" During
66
author_email=info@teawork.de

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
setup(
55
packages=find_packages(),
66
name="twitchAPI",
7-
version="2.5.6",
7+
version="2.5.7",
88
url="https://github.com/Teekeks/pyTwitchAPI",
99
author="Lena \"Teekeks\" During",
1010
author_email="info@teawork.de",

twitchAPI/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
from twitchAPI.pubsub import PubSub
55
from twitchAPI.eventsub import EventSub
66

7-
VERSION = (2, 5, 6)
7+
VERSION = (2, 5, 7)

twitchAPI/twitch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2897,7 +2897,7 @@ def end_poll(self,
28972897
body = {
28982898
'broadcaster_id': broadcaster_id,
28992899
'id': poll_id,
2900-
status: status.value
2900+
'status': status.value
29012901
}
29022902
result = self.__api_patch_request(url, AuthType.USER, [AuthScope.CHANNEL_MANAGE_POLLS], data=body).json()
29032903
result = fields_to_enum(result, ['status'], PollStatus, PollStatus.ACTIVE)

0 commit comments

Comments
 (0)