Skip to content
Snippets Groups Projects
Commit 7e8c6fe2 authored by Jan Hartig's avatar Jan Hartig
Browse files

Merge branch 'dev' into 'main'

Reformat

See merge request !11
parents f25d696c be58fc00
No related branches found
No related tags found
1 merge request!11Reformat
Pipeline #27922 passed
...@@ -45,7 +45,9 @@ def main(end): ...@@ -45,7 +45,9 @@ def main(end):
local_hostname = None local_hostname = None
s = smtplib.SMTP( s = smtplib.SMTP(
host=config["MAIL"]["SERVER"], port=config["MAIL"]["PORT"], local_hostname=local_hostname host=config["MAIL"]["SERVER"],
port=config["MAIL"]["PORT"],
local_hostname=local_hostname,
) )
sent = 0 sent = 0
...@@ -99,7 +101,9 @@ def main(end): ...@@ -99,7 +101,9 @@ def main(end):
job_uuids.append(Path(job).name) job_uuids.append(Path(job).name)
msg.set_content( msg.set_content(
"The following jobs currently have errors:\n\n - {}".format("\n - ".join(job_uuids)) "The following jobs currently have errors:\n\n - {}".format(
"\n - ".join(job_uuids)
)
) )
s.send_message(msg) s.send_message(msg)
......
...@@ -3,7 +3,15 @@ from os import path, makedirs ...@@ -3,7 +3,15 @@ from os import path, makedirs
from uuid import uuid4 from uuid import uuid4
import av import av
from flask import current_app, render_template, abort, url_for, redirect, request, stream_with_context from flask import (
current_app,
render_template,
abort,
url_for,
redirect,
request,
stream_with_context,
)
from forms import UploadForm from forms import UploadForm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment