Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
ptb-subtitle-service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Hartig
ptb-subtitle-service
Commits
7e8c6fe2
Commit
7e8c6fe2
authored
1 year ago
by
Jan Hartig
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into 'main'
Reformat See merge request
!11
parents
f25d696c
be58fc00
No related branches found
No related tags found
1 merge request
!11
Reformat
Pipeline
#27922
passed
1 year ago
Stage: build
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mailservice.py
+6
-2
6 additions, 2 deletions
mailservice.py
routes.py
+9
-1
9 additions, 1 deletion
routes.py
with
15 additions
and
3 deletions
mailservice.py
+
6
−
2
View file @
7e8c6fe2
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
routes.py
+
9
−
1
View file @
7e8c6fe2
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment