From 0d04cb3a1631037cf82a47dc5bd4f392beb39672 Mon Sep 17 00:00:00 2001 From: AyushStarGupta <37546890+AyushCodez@users.noreply.github.com> Date: Sun, 13 Feb 2022 00:39:36 +0530 Subject: [PATCH] Fix#3 --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 7bf10bc..4b2e24e 100644 --- a/main.py +++ b/main.py @@ -423,7 +423,7 @@ def upload_data(): date2 = max(date_list) x_data = [date1 + timedelta(minutes=i) - for i in range((date2-date1).seconds//60 + 1)] + for i in range(int((date2-date1).total_seconds()//60) + 1)] x_from_the_dataa = [datetime.strptime( i[0], "%Y-%m-%d %H:%M") for i in data] yhaha = [float(ts[1]) for ts in data]