From 3a6b6c3c0b1344b0936b43e0b44addf6a1713650 Mon Sep 17 00:00:00 2001 From: "Sigmund, Dominik" <dominik.sigmund@br.de> Date: Mon, 31 Jul 2023 11:38:37 +0000 Subject: [PATCH] Update file script.py --- script.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script.py b/script.py index 595e2a2..acd686e 100644 --- a/script.py +++ b/script.py @@ -12,8 +12,8 @@ from dotenv import load_dotenv gitlab_url = 'https://gitlab.ard.de' -sender_email = 'gitlab-report@br.de' -recipient_email = 'dominik.sigmund@br.de' +sender_email = 'ard-gitlab-report@br.de' +recipient_email = 'gitlab-oc@cn.ard.de' def check_binaries(): required_binaries = ['df', 'gitlab-ctl'] @@ -155,8 +155,8 @@ def send_email(sender_email, recipient_email, subject, body): <head></head> <body> <h2>Monthly GitLab Report - {datetime.datetime.now().strftime('%B %Y')}</h2> - <p>{body['gitlab_version']}<</p> - <table border="1" cellpadding="5" style="border-collapse: collapse; width: 50%;"> + <p>Version: {body['gitlab_version']}</p> + <table border="1" cellpadding="5" style="border-collapse: collapse; width: 100%;"> <tr> <th>Metrics</th> <th>Values</th> @@ -239,7 +239,7 @@ check_binaries() api_token, confluence_token = load_api_token() -subject = 'Monthly GitLab Report - {month} {year}'.format(month=datetime.datetime.now().strftime('%B'), year=datetime.datetime.now().strftime('%Y')) +subject = '[gitlab.ard.de] Monthly Report - {month} {year}'.format(month=datetime.datetime.now().strftime('%B'), year=datetime.datetime.now().strftime('%Y')) # Get GitLab information num_projects, num_users, admin_users_list, free_space_on_disk, total_commits_last_month, gitlab_version = get_gitlab_info(api_token) -- GitLab