From 4cd392022fd2cde587e4ddd07a3b6fdc0331e87f Mon Sep 17 00:00:00 2001 From: DevilXD Date: Fri, 7 Jan 2022 19:26:26 +0100 Subject: [PATCH] Correct logging attempts count: +1 --- twitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitch.py b/twitch.py index f97b157..35b38b7 100644 --- a/twitch.py +++ b/twitch.py @@ -427,7 +427,7 @@ class Twitch: context = await self.gql_request(GQL_OPERATIONS["CurrentDrop"]) drop_data: JsonType = context["data"]["currentUser"]["dropCurrentSession"] 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: self.restart_watching() break