Evilmass commited on
Commit ·
365ad3d
1
Parent(s): 5cf3f91
change gotify priority = 0
Browse files- api.py +6 -6
- config/settings_prod.py +1 -0
- utils.py +2 -1
api.py
CHANGED
|
@@ -32,7 +32,7 @@ def run_scheduler(loop):
|
|
| 32 |
task.add_job(
|
| 33 |
bilibili_sign,
|
| 34 |
"cron",
|
| 35 |
-
hour=
|
| 36 |
minute=1,
|
| 37 |
next_run_time=datetime.now(),
|
| 38 |
coalesce=True,
|
|
@@ -41,7 +41,7 @@ def run_scheduler(loop):
|
|
| 41 |
task.add_job(
|
| 42 |
bilibili_live,
|
| 43 |
"cron",
|
| 44 |
-
hour=
|
| 45 |
minute=1,
|
| 46 |
next_run_time=datetime.now(),
|
| 47 |
coalesce=True,
|
|
@@ -50,7 +50,7 @@ def run_scheduler(loop):
|
|
| 50 |
task.add_job(
|
| 51 |
v2ex_sign,
|
| 52 |
"cron",
|
| 53 |
-
hour=
|
| 54 |
minute=2,
|
| 55 |
next_run_time=datetime.now(),
|
| 56 |
coalesce=True,
|
|
@@ -59,7 +59,7 @@ def run_scheduler(loop):
|
|
| 59 |
task.add_job(
|
| 60 |
tsdm_sign,
|
| 61 |
"cron",
|
| 62 |
-
hour=
|
| 63 |
minute=3,
|
| 64 |
next_run_time=datetime.now(),
|
| 65 |
coalesce=True,
|
|
@@ -68,7 +68,7 @@ def run_scheduler(loop):
|
|
| 68 |
task.add_job(
|
| 69 |
wuaipojie_sign,
|
| 70 |
"cron",
|
| 71 |
-
hour=
|
| 72 |
minute=4,
|
| 73 |
next_run_time=datetime.now(),
|
| 74 |
coalesce=True,
|
|
@@ -86,7 +86,7 @@ def run_scheduler(loop):
|
|
| 86 |
task.add_job(
|
| 87 |
aliyundrive_sign,
|
| 88 |
"cron",
|
| 89 |
-
hour=
|
| 90 |
minute=7,
|
| 91 |
next_run_time=datetime.now(),
|
| 92 |
coalesce=True,
|
|
|
|
| 32 |
task.add_job(
|
| 33 |
bilibili_sign,
|
| 34 |
"cron",
|
| 35 |
+
hour=0,
|
| 36 |
minute=1,
|
| 37 |
next_run_time=datetime.now(),
|
| 38 |
coalesce=True,
|
|
|
|
| 41 |
task.add_job(
|
| 42 |
bilibili_live,
|
| 43 |
"cron",
|
| 44 |
+
hour=5,
|
| 45 |
minute=1,
|
| 46 |
next_run_time=datetime.now(),
|
| 47 |
coalesce=True,
|
|
|
|
| 50 |
task.add_job(
|
| 51 |
v2ex_sign,
|
| 52 |
"cron",
|
| 53 |
+
hour=0,
|
| 54 |
minute=2,
|
| 55 |
next_run_time=datetime.now(),
|
| 56 |
coalesce=True,
|
|
|
|
| 59 |
task.add_job(
|
| 60 |
tsdm_sign,
|
| 61 |
"cron",
|
| 62 |
+
hour=12,
|
| 63 |
minute=3,
|
| 64 |
next_run_time=datetime.now(),
|
| 65 |
coalesce=True,
|
|
|
|
| 68 |
task.add_job(
|
| 69 |
wuaipojie_sign,
|
| 70 |
"cron",
|
| 71 |
+
hour=12,
|
| 72 |
minute=4,
|
| 73 |
next_run_time=datetime.now(),
|
| 74 |
coalesce=True,
|
|
|
|
| 86 |
task.add_job(
|
| 87 |
aliyundrive_sign,
|
| 88 |
"cron",
|
| 89 |
+
hour=12,
|
| 90 |
minute=7,
|
| 91 |
next_run_time=datetime.now(),
|
| 92 |
coalesce=True,
|
config/settings_prod.py
CHANGED
|
@@ -26,6 +26,7 @@ gotify_host = os.environ.get("gotify_host")
|
|
| 26 |
gotify_port = os.environ.get("gotify_port")
|
| 27 |
gotify_token = os.environ.get("gotify_token")
|
| 28 |
gotify_img = "https://img.evimo.top/gotify.png"
|
|
|
|
| 29 |
|
| 30 |
# mysql
|
| 31 |
mysql_option = {
|
|
|
|
| 26 |
gotify_port = os.environ.get("gotify_port")
|
| 27 |
gotify_token = os.environ.get("gotify_token")
|
| 28 |
gotify_img = "https://img.evimo.top/gotify.png"
|
| 29 |
+
priority = 0
|
| 30 |
|
| 31 |
# mysql
|
| 32 |
mysql_option = {
|
utils.py
CHANGED
|
@@ -17,6 +17,7 @@ from __init__ import (
|
|
| 17 |
gotify_port,
|
| 18 |
gotify_token,
|
| 19 |
gotify_img,
|
|
|
|
| 20 |
DIR_PATH,
|
| 21 |
DEBUG,
|
| 22 |
browser_headless,
|
|
@@ -103,7 +104,7 @@ def push_msg(title: str = "无标题", message: str = "无内容", img_url: str
|
|
| 103 |
data = {
|
| 104 |
"title": title,
|
| 105 |
"message": message,
|
| 106 |
-
"priority":
|
| 107 |
"extras": {
|
| 108 |
"client::display": {"contentType": "text/plaintext"},
|
| 109 |
"client::notification": {"bigImageUrl": img_url},
|
|
|
|
| 17 |
gotify_port,
|
| 18 |
gotify_token,
|
| 19 |
gotify_img,
|
| 20 |
+
priority,
|
| 21 |
DIR_PATH,
|
| 22 |
DEBUG,
|
| 23 |
browser_headless,
|
|
|
|
| 104 |
data = {
|
| 105 |
"title": title,
|
| 106 |
"message": message,
|
| 107 |
+
"priority": priority,
|
| 108 |
"extras": {
|
| 109 |
"client::display": {"contentType": "text/plaintext"},
|
| 110 |
"client::notification": {"bigImageUrl": img_url},
|