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 -*-
__version__ = "2.2.5"
__version__ = "2.3.1"
from .TwitchChannelPointsMiner import TwitchChannelPointsMiner # noqa: F401

View File

@@ -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"
)
)
)

View File

@@ -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.",