From cfd5200b298039915d33df7128ed13304cbcb85a Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Mon, 15 Apr 2024 18:37:34 +0800 Subject: [PATCH] Undo last commmit - well the reasons why it was faster was that it was only returning unauthenticated results --- gitea-to-ics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea-to-ics.py b/gitea-to-ics.py index eed2c15..3046826 100644 --- a/gitea-to-ics.py +++ b/gitea-to-ics.py @@ -20,7 +20,7 @@ def get_combined(token): req = urllib.request.Request(GITEA_REPO_URL + f"/repos/issues/search?state=open&{q}=true") req.add_header("Accept", "application/json") - req.add_header("Authorization", token) + req.add_header("Authorization", "token" + token) timestamp=datetime.datetime.now() print(f"{timestamp} Requesting and parsing {q}")