notify script: reuse already defined strings
This commit is contained in:
parent
7aeee0a4ae
commit
f95b79375f
@ -150,7 +150,7 @@ def notify(smtp, repositories, agir_key, fetch_mail):
|
||||
email["Subject"] = subject
|
||||
email["From"] = FORGE_ML
|
||||
email["To"] = user_email
|
||||
email["CC"] = "forge-support@chapril.org"
|
||||
email["CC"] = FORGE_ML
|
||||
|
||||
smtp.send_message(email)
|
||||
logging.debug("Mail to '%s' (%s) sent for %s.", user, user_email, url)
|
||||
@ -181,7 +181,7 @@ def main():
|
||||
# with smtplib.smtp_ssl(server, 465, context=context) as smtp:
|
||||
# smtp.login(login, password)
|
||||
|
||||
agir_key = getpass.getpass(prompt="Type agir.april.org API key:")
|
||||
agir_key = getpass.getpass(prompt=f"Type {AGIR_URL} API key:")
|
||||
|
||||
repositories = fileinput.input()
|
||||
with smtplib.SMTP("127.0.0.1", 25) as smtp:
|
||||
|
Loading…
Reference in New Issue
Block a user