From 1d59834e5597d8f5673e0241ebcf6314aed8fab2 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Mon, 15 Apr 2024 17:42:35 +0800 Subject: [PATCH] Add timing debug --- gitea-to-ics.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitea-to-ics.py b/gitea-to-ics.py index 6386135..b4a65a9 100644 --- a/gitea-to-ics.py +++ b/gitea-to-ics.py @@ -22,6 +22,7 @@ def get_combined(token): req.add_header("Content-Type", "application/json") req.add_header("Authorization", "token " + token) + print(f"Requesting and parsing {q}") with urllib.request.urlopen(req) \ as response: issues = json.load(response) @@ -32,6 +33,7 @@ def get_combined(token): else: combined[_id] = issue combined[_id]['categories'] = [q] + print(f"Done processing {q}") return combined def process_combined(combined):