From 0e2d387565cb03c41cef33b9ff01eac5a5cb9132 Mon Sep 17 00:00:00 2001 From: marcellus Date: Thu, 14 Sep 2023 22:26:17 +0200 Subject: update: general changes, read the diff --- scripts/icstocal | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/icstocal') diff --git a/scripts/icstocal b/scripts/icstocal index 3d086ca..9bff2be 100755 --- a/scripts/icstocal +++ b/scripts/icstocal @@ -68,7 +68,8 @@ while line != "END:VCALENDAR\n": starts.append([year, month, day, hour, min]) elif line.startswith("DTEND"): end = line.lstrip("DTEND") - while start[n] != ":": + n = 0 + while end[n] != ":": n+=1 hour = "" min = "" -- cgit v1.2.3