Add env variable for alternative username

This commit is contained in:
Sigma 2024-09-02 17:00:24 +02:00 committed by GitHub
parent 7eba67ea4e
commit 0c31b995d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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", []):