Skip to content

Commit 77430ac

Browse files
committed
fix: 修复 config.file_cdn 为 false 时无法发送统计数据
1 parent a4681f1 commit 77430ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcim_sync/utils/telegram/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def send_to_telegram(cls) -> int:
114114
"MCIM API 已缓存:\n"
115115
f"Curseforge 模组 {mcim_stats['curseforge']['mod']} 个,文件 {mcim_stats['curseforge']['file']} 个,指纹 {mcim_stats['curseforge']['fingerprint']}\n"
116116
f"Modrinth 项目 {mcim_stats['modrinth']['project']} 个,版本 {mcim_stats['modrinth']['version']} 个,文件 {mcim_stats['modrinth']['file']}\n"
117-
f"CDN 文件 {mcim_stats['file_cdn']['file']} 个"
117+
f"CDN 文件 {mcim_stats['file_cdn']['file']} 个" if config.file_cdn else ""
118118
)
119119

120120
if config.file_cdn:

0 commit comments

Comments
 (0)