From 33df0438b0c60d34bdd830c2e2a77299d4b01c03 Mon Sep 17 00:00:00 2001 From: Der_Googler <54764558+DerGoogler@users.noreply.github.com> Date: Mon, 18 Sep 2023 04:50:37 +0200 Subject: [PATCH] Update generate-modules.py --- generate-modules.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/generate-modules.py b/generate-modules.py index 05b70ab..53760d2 100644 --- a/generate-modules.py +++ b/generate-modules.py @@ -5,12 +5,12 @@ from datetime import datetime # Configuration -REPO_NAME = os.environ['REPO_NAME'] or Null -REPO_TITLE = os.environ['REPO_TITLE'] or Null -REPO_WEBSITE = os.environ['REPO_WEBSITE'] or Null -REPO_SUPPORT = os.environ['REPO_SUPPORT'] or Null -REPO_DONATE = os.environ['REPO_DONATE'] or Null -REPO_SUBMIT_MODULE = os.environ['REPO_SUBMIT_MODULE'] or Null +REPO_NAME = os.getenv('REPO_NAME') +REPO_TITLE = os.getenv('REPO_TITLE') +REPO_WEBSITE = os.getenv('REPO_WEBSITE') +REPO_SUPPORT = os.getenv('REPO_SUPPORT') +REPO_DONATE = os.getenv('REPO_DONATE') +REPO_SUBMIT_MODULE = os.getenv('REPO_SUBMIT_MODULE') # Initialize the GitHub objects g = Github(os.environ['GIT_TOKEN'])