From 04ed568c98e6dff01890a430ad11c7aee2d31586 Mon Sep 17 00:00:00 2001 From: Rasmus Kaj Date: Fri, 21 Feb 2025 00:21:22 +0100 Subject: [PATCH] Typo. --- poll.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poll.py b/poll.py index 127c5c8..9dfe4c7 100755 --- a/poll.py +++ b/poll.py @@ -7,7 +7,7 @@ logging.basicConfig(level=logging.INFO) fingerpass = getenv('FINGER_PW') -gitauth = (getenv('GIT_USER', getenv('GIT_PW')) +gitauth = (getenv('GIT_USER'), getenv('GIT_PW')) fingerurl = f'https://finger.stacken.kth.se/services/git/all' @@ -21,7 +21,7 @@ for (user, passwd) in response.json().items(): "email": f"{user}@stacken.kth.se", "password": passwd, }, - auth = ('fingerpoller', gitpass) + auth = gitauth ) if response.status_code == 422: patch(f'https://git.stacken.kth.se/api/v1/admin/users/{user}',