@whyour/qinglong 0.20.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whyour/qinglong",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "Timed task management platform supporting Python3, JavaScript, Shell, Typescript",
5
5
  "repository": {
6
6
  "type": "git",
package/sample/notify.js CHANGED
@@ -97,7 +97,6 @@ const push_config = {
97
97
  WEBHOOK_CONTENT_TYPE: '', // 自定义通知 content-type
98
98
  };
99
99
 
100
- // 首先读取 面板变量 或者 github action 运行变量
101
100
  for (const key in push_config) {
102
101
  const v = process.env[key];
103
102
  if (v) {
@@ -1290,7 +1289,7 @@ async function sendNotify(text, desp, params = {}) {
1290
1289
  }
1291
1290
  }
1292
1291
 
1293
- if (push_config.HITOKOTO) {
1292
+ if (push_config.HITOKOTO !== 'false') {
1294
1293
  desp += '\n\n' + (await one());
1295
1294
  }
1296
1295
 
package/sample/notify.py CHANGED
@@ -120,7 +120,6 @@ push_config = {
120
120
  }
121
121
  # fmt: on
122
122
 
123
- # 首先读取 面板变量 或者 github action 运行变量
124
123
  for k in push_config:
125
124
  if os.getenv(k):
126
125
  v = os.getenv(k)
@@ -962,7 +961,7 @@ def send(title: str, content: str, ignore_default_config: bool = False, **kwargs
962
961
  return
963
962
 
964
963
  hitokoto = push_config.get("HITOKOTO")
965
- content += "\n\n" + one() if hitokoto else ""
964
+ content += "\n\n" + one() if hitokoto != "false" else ""
966
965
 
967
966
  notify_function = add_notify_function()
968
967
  ts = [