From ce40652261237d62c435479061d3efb973c3f5a3 Mon Sep 17 00:00:00 2001 From: devfle <52854338+devfle@users.noreply.github.com> Date: Wed, 11 Oct 2023 17:10:05 +0000 Subject: [PATCH] fix: data array --- readme_level.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme_level.py b/readme_level.py index 3dd52e0..2cc9949 100644 --- a/readme_level.py +++ b/readme_level.py @@ -40,6 +40,9 @@ def fetch_user_data(self) -> dict[str, int] | None: user_data["totalFollowers"] = (response_data["data"]["user"] ["followers"]["totalCount"]) + user_data["totalRepositories"] = (response_data["data"]["user"] + ["repositories"]["totalCount"]) + return user_data exception("request to github api failed")