diff --git a/TwitchChannelPointsMiner/__init__.py b/TwitchChannelPointsMiner/__init__.py index f2f04dc..1be9ccf 100644 --- a/TwitchChannelPointsMiner/__init__.py +++ b/TwitchChannelPointsMiner/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -__version__ = "2.2.5" +__version__ = "2.3.1" from .TwitchChannelPointsMiner import TwitchChannelPointsMiner # noqa: F401 diff --git a/TwitchChannelPointsMiner/classes/WebSocketsPool.py b/TwitchChannelPointsMiner/classes/WebSocketsPool.py index baf7119..5bf442c 100644 --- a/TwitchChannelPointsMiner/classes/WebSocketsPool.py +++ b/TwitchChannelPointsMiner/classes/WebSocketsPool.py @@ -4,7 +4,7 @@ import time import json import random -from datetime import fromtimestamp +from datetime import datetime from dateutil import parser from TwitchChannelPointsMiner.classes.EventPrediction import EventPrediction @@ -132,9 +132,9 @@ class WebSocketsPool: message_data["timestamp"] if "timestamp" in message_data else ( - fromtimestamp(message_data["server_time"]).isoformat() + "Z" + datetime.fromtimestamp(message_data["server_time"]).isoformat() + "Z" if "server_time" in message_data - else fromtimestamp(time.time()).isoformat() + "Z" + else datetime.fromtimestamp(time.time()).isoformat() + "Z" ) ) ) diff --git a/setup.py b/setup.py index 2ae5590..14e3442 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ def read(fname): setuptools.setup( name="Twitch-Channel-Points-Miner-v2", - version="2.2.5", + version="2.3.1", author="Tkd-Alex (Alessandro Maggio)", author_email="alex.tkd.alex@gmail.com", description="A simple script that will watch a stream for you and earn the channel points.",