From eaf6313f3911e045872fb7a50ac0427f82058fd9 Mon Sep 17 00:00:00 2001 From: Andreas Olsson Date: Mon, 6 Jan 2025 13:31:51 +0100 Subject: [PATCH] Simplify "in dictionary" condition --- hv4gha/gh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hv4gha/gh.py b/hv4gha/gh.py index d1b0963..ffc5c3b 100644 --- a/hv4gha/gh.py +++ b/hv4gha/gh.py @@ -177,7 +177,7 @@ def __find_installation(self) -> str: if installation.account.login.lower() == self.account.lower(): return str(installation.id) - if "next" in response.links.keys(): + if "next" in response.links: pagination_params["page"] += 1 more = True