Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
df9f5b10
Commit
df9f5b10
authored
Mar 05, 2017
by
Administrator
Browse files
Merge branch 'master' of git.fsmpi.rwth-aachen.de:protokollsystem/proto3
parents
37f5e83d
01a94e5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
df9f5b10
...
...
@@ -1296,8 +1296,8 @@ try:
if
signum
==
0
:
check_and_send_reminders
()
except
ImportError
as
exc
:
print
(
"uwsgi not found, falling back to apscheduler for cron-like tasks"
)
def
make_scheduler
():
print
(
"uwsgi not found, falling back to apscheduler for cron-like tasks"
)
scheduler
=
BackgroundScheduler
()
scheduler
.
start
()
scheduler
.
add_job
(
...
...
utils.py
View file @
df9f5b10
...
...
@@ -12,6 +12,8 @@ from datetime import datetime, date, timedelta
import
requests
from
io
import
BytesIO
import
ipaddress
from
socket
import
getfqdn
from
uuid
import
uuid4
import
config
...
...
@@ -81,6 +83,7 @@ class MailManager:
msg
[
"From"
]
=
self
.
from_addr
msg
[
"To"
]
=
to_addr
msg
[
"Subject"
]
=
subject
msg
[
"Message-ID"
]
=
"{}@{}"
.
format
(
uuid4
(),
getfqdn
())
msg
.
attach
(
MIMEText
(
content
,
_charset
=
"utf-8"
))
if
appendix
is
not
None
:
for
name
,
file_like
in
appendix
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment