Skip to content

Commit

Permalink
Refactor code & Update documentation (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusancky authored Oct 14, 2023
1 parent cb306cc commit bfa0a8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/AllUp.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: AllUp

on:
push:
branches: [main]
pull_request:
types:
- opened
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AllUp-Satwiki

![Python: 3.11 | 3.12](https://img.shields.io/badge/Python-3.11%20%7C%203.12-python?style=social&logo=python&logoColor=blue) ![License: Apache-2.0](https://img.shields.io/github/license/yusancky/AllUp-Satwiki?style=social)
![Python: 3.11 | 3.12 | 3.13](https://img.shields.io/badge/Python-3.11%20%7C%203.12%20%7C%203.13-python?style=social&logo=python&logoColor=blue) ![License: Apache-2.0](https://img.shields.io/github/license/yusancky/AllUp-Satwiki?style=social)

AllUp 项目是由 [雨伞CKY](https://github.com/yusancky) 维护的、自动化爬取并集合数据以便动态更新的项目。AllUp 项目的数据将于每日北京时间 9 时 26 分爬取数据并修改。[^1]

Expand All @@ -14,4 +14,4 @@ AllUp 项目是由 [雨伞CKY](https://github.com/yusancky) 维护的、自动

请前往 [贡献文档](/.github/CONTRIBUTING.md) 查看贡献相关内容。

[^1]: 定时进行任务基于 GitHub Action 的 `schedule` 事件。但 `schedule` 事件在 Actions 工作流运行期间负载过高时可能会延迟。据以往经历,一般延迟在 50 分钟左右
[^1]: 定时进行任务基于 GitHub Action 的 `schedule` 事件。但 `schedule` 事件在 Actions 工作流运行期间负载过高时可能会延迟。据以往经历,一般延迟在 30 分钟至 45 分钟
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ def make(id):
AllUp_data = {'switch_key': '1'}
for dataset in ['t'] + [str(i + 1) for i in range(2)] + ['#default']:
AllUp_data[dataset] = make(dataset)
AllUp_content = f"<includeonly>{AllUp_utils.wikitext.build_switch(AllUp_data)}</includeonly><noinclude>[[Category:模板]]{{{{documentation}}}}</noinclude>"
AllUp_content = f'<includeonly>{AllUp_utils.wikitext.build_switch(AllUp_data)}</includeonly><noinclude>[[Category:模板]]{{{{documentation}}}}</noinclude>'
AllUp_utils.wiki.push('模板:AllUp','MAIN',AllUp_content)

0 comments on commit bfa0a8a

Please sign in to comment.