Skip to content

Commit

Permalink
fix: 'VersionManager' object has no attribute 'get_release_list'
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Feb 20, 2024
1 parent 3ef2fb9 commit 1e6c32f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/utils/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ def get_current_version(

return current_tag

async def get_release_list(self) -> list:
"""获取发行列表"""
rls_list_resp = requests.get(
url="https://api.github.com/repos/RockChinQ/QChatGPT/releases",
proxies=self.ap.proxy_mgr.get_forward_proxies(),
timeout=5
)

rls_list = rls_list_resp.json()

return rls_list

async def update_all(self):
"""检查更新并下载源码"""
start_time = time.time()
Expand Down

0 comments on commit 1e6c32f

Please sign in to comment.