From 0c31b995d3cbf93eafd921070bf6dd89742e79ae Mon Sep 17 00:00:00 2001 From: Sigma Date: Mon, 2 Sep 2024 17:00:24 +0200 Subject: [PATCH] Add env variable for alternative username --- github_stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github_stats.py b/github_stats.py index e2fe164..96da5ff 100644 --- a/github_stats.py +++ b/github_stats.py @@ -490,7 +490,7 @@ Languages: ): continue author = author_obj.get("author", {}).get("login", "") - if author != self.username: + if author not in [ self.username, os.environ.get("ALT_USERNAME", "") ]: continue for week in author_obj.get("weeks", []):