Skip to content

Commit

Permalink
chore: 修改默认运行时间
Browse files Browse the repository at this point in the history
  • Loading branch information
chen310 committed Mar 21, 2022
1 parent 32f7ec1 commit c4f5cdc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
FUNCTION_NAME: ${{ secrets.FUNCTION_NAME }}

DEFAULT_SONG_NUMER_CRON: "10 0 0 * * * *"
DEFAULT_CRON: "0 30 0 * * * *"
DEFAULT_CRON: "0 35 8 * * * *"
DEFAULT_REGION: "ap-guangzhou"
DEFAULT_FUNCTION_NAME: "NeteaseCloudMusicTasks"

Expand Down
6 changes: 6 additions & 0 deletions index.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# -*- coding: utf-8 -*-
"""
cron: 35 8 * * *
new Env('网易云音乐自动任务');
"""
from utils import updateConfig
import time
import requests
Expand All @@ -24,11 +28,13 @@ def md2text(data):
data = re.sub(r'`', r'', data)
return data


def md2fullMd(data):
data = re.sub(r'\*\*(.*?)\*\*\n', r'#### \1\n', data)
data = re.sub(r'\t', r'- ', data)
return data


def getSongNumber():
res = {}
if runtime == 'tencent-scf':
Expand Down

0 comments on commit c4f5cdc

Please sign in to comment.