add dashboard api

This commit is contained in:
zema1 authored and virusdefender committed 2018-01-04 19:43:18 +08:00
1 parent 914c4727fc
commit b388c5dd03
5 files changed
+52 -30

No files matched your search

+5
View File
@@ -1,3 +1,4 @@
import os
import re
import datetime
import random
@@ -76,3 +77,7 @@ def send_email(smtp_config, from_name, to_email, to_name, subject, content):
password=smtp_config["password"],
port=smtp_config["port"],
tls=smtp_config["tls"])
def get_env(name, default=""):
return os.environ.get(name, default)