[fix] 修复一个错误

This commit is contained in:
yhy0 2021-07-29 17:59:12 +08:00
parent b98929a064
commit 0a0ce978fd

View File

@ -55,7 +55,7 @@ def get_update_log(url):
download_url = json_str[0]['html_url'] download_url = json_str[0]['html_url']
return update_log, download_url return update_log, download_url
else: else:
json_str = requests.get(url + '/releases', headers = github_headers, timeout= 10).json() json_str = requests.get(url + '/commits', headers = github_headers, timeout= 10).json()
update_log = json_str[0]['commit']['message'] update_log = json_str[0]['commit']['message']
return update_log, '' return update_log, ''