Merge pull request #267 from DzAvril/main

This commit is contained in:
jxxghp
2024-05-06 22:37:33 +08:00
committed by GitHub
3 changed files with 8 additions and 4 deletions

View File

@@ -590,10 +590,13 @@
"name": "契约检查",
"description": "定时检查保种契约达成情况。",
"labels": "做种",
"version": "1.1",
"version": "1.2",
"icon": "contract.png",
"author": "DzAvril",
"level": 1
"level": 1,
"history": {
"v1.2": "修复契约检查无数据返回的问题"
}
},
"DownloaderHelper": {
"name": "下载器助手",

View File

@@ -39,7 +39,7 @@ class ContractCheck(_PluginBase):
# 插件图标
plugin_icon = "contract.png"
# 插件版本
plugin_version = "1.1"
plugin_version = "1.2"
# 插件作者
plugin_author = "DzAvril"
# 作者主页
@@ -713,7 +713,7 @@ class ContractCheck(_PluginBase):
else:
num_gap = contract_info.num - current_seeding_size[0]
is_satisfied = is_size_satisfied and is_num_satisfied
duration = (datetime.now().date() - contract_info.date).days
duration = (datetime.now() - contract_info.date).days
if duration < contract_info.duration:
duration_gap = contract_info.duration - duration
return is_satisfied, size_gap, num_gap, duration_gap

View File

@@ -69,6 +69,7 @@ class ISiteUserInfo(metaclass=ABCMeta):
"UBits": ["UBits"],
"听听歌": ["TTG", "WiKi", "DoA", "NGB", "ARiN"],
"馒头": ["MTeam", "MTeamTV"],
"朋友": ["FRDS"],
}
# 错误信息