From 0136788358610a6568f2f1a97f8d52ab2fd7fffb Mon Sep 17 00:00:00 2001 From: Kayou Date: Fri, 22 Jan 2021 10:44:10 +0100 Subject: [PATCH] Typo --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index 6ad7189..9f820da 100644 --- a/run.py +++ b/run.py @@ -1037,7 +1037,7 @@ async def github(request): async def is_user_in_organization(user): token = open("./github_bot_token").read().strip() async with aiohttp.ClientSession(headers={"Authorization": f"token {token}", "Accept": "application/vnd.github.v3+json"}) as session: - await resp = session.get(f"https://api.github.com/orgs/YunoHost-Apps/members/{user}") + resp = await session.get(f"https://api.github.com/orgs/YunoHost-Apps/members/{user}") return resp.status == 204 if not await is_user_in_organization(hook_infos["comment"]["user"]["login"]):