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}',