fix import

This commit is contained in:
Alessandro Maggio
2021-01-23 21:11:36 +01:00
parent 8e4e30e53c
commit db1efc1d16
3 changed files with 5 additions and 5 deletions

View File

@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
__version__ = "2.2.5" __version__ = "2.3.1"
from .TwitchChannelPointsMiner import TwitchChannelPointsMiner # noqa: F401 from .TwitchChannelPointsMiner import TwitchChannelPointsMiner # noqa: F401

View File

@@ -4,7 +4,7 @@ import time
import json import json
import random import random
from datetime import fromtimestamp from datetime import datetime
from dateutil import parser from dateutil import parser
from TwitchChannelPointsMiner.classes.EventPrediction import EventPrediction from TwitchChannelPointsMiner.classes.EventPrediction import EventPrediction
@@ -132,9 +132,9 @@ class WebSocketsPool:
message_data["timestamp"] message_data["timestamp"]
if "timestamp" in message_data if "timestamp" in message_data
else ( else (
fromtimestamp(message_data["server_time"]).isoformat() + "Z" datetime.fromtimestamp(message_data["server_time"]).isoformat() + "Z"
if "server_time" in message_data if "server_time" in message_data
else fromtimestamp(time.time()).isoformat() + "Z" else datetime.fromtimestamp(time.time()).isoformat() + "Z"
) )
) )
) )

View File

@@ -8,7 +8,7 @@ def read(fname):
setuptools.setup( setuptools.setup(
name="Twitch-Channel-Points-Miner-v2", name="Twitch-Channel-Points-Miner-v2",
version="2.2.5", version="2.3.1",
author="Tkd-Alex (Alessandro Maggio)", author="Tkd-Alex (Alessandro Maggio)",
author_email="alex.tkd.alex@gmail.com", author_email="alex.tkd.alex@gmail.com",
description="A simple script that will watch a stream for you and earn the channel points.", description="A simple script that will watch a stream for you and earn the channel points.",