Correct logging attempts count: +1
This commit is contained in:
1 parent
36ed913ce8
commit
4cd392022f
1 file changed
+1
-1
@@ -427,7 +427,7 @@ class Twitch:
|
|||||||
context = await self.gql_request(GQL_OPERATIONS["CurrentDrop"])
|
context = await self.gql_request(GQL_OPERATIONS["CurrentDrop"])
|
||||||
drop_data: JsonType = context["data"]["currentUser"]["dropCurrentSession"]
|
drop_data: JsonType = context["data"]["currentUser"]["dropCurrentSession"]
|
||||||
with open("log.txt", 'a') as file:
|
with open("log.txt", 'a') as file:
|
||||||
print(format(time(), ".6f"), attempt, drop_data["dropID"], file=file)
|
print(format(time(), ".6f"), attempt+1, drop_data["dropID"], file=file)
|
||||||
if drop_data["dropID"] != drop.id:
|
if drop_data["dropID"] != drop.id:
|
||||||
self.restart_watching()
|
self.restart_watching()
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in new issue
Block a user