From c6f9a5cd92de4906a616b1bd4b3daa4fb6a32e43 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 29 Jun 2023 14:54:58 +0800 Subject: [PATCH] :bug: Fix xg get score --- cqwu/methods/xg/get_score.py | 3 ++- setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cqwu/methods/xg/get_score.py b/cqwu/methods/xg/get_score.py index 68be678..fdbcbb5 100644 --- a/cqwu/methods/xg/get_score.py +++ b/cqwu/methods/xg/get_score.py @@ -1,3 +1,4 @@ +import json from typing import List import cqwu @@ -17,7 +18,7 @@ class GetScore: List[types.Score]: 成绩列表 """ year = year or self.xue_nian - semester = semester or self.xue_qi + semester = semester or (self.xue_qi + 1) await self.oauth_xg() query_url = "http://xg.cqwu.edu.cn/xsfw/sys/zhcptybbapp/modules/cjcx/cjcxbgdz.do" headers = { diff --git a/setup.py b/setup.py index 90ffc77..a5365a2 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh: setuptools.setup( name="cqwu", # 用自己的名替换其中的YOUR_USERNAME_ - version="0.0.12", # 包版本号,便于维护版本 + version="0.0.13", # 包版本号,便于维护版本 author="omg-xtao", # 作者,可以写自己的姓名 author_email="xtao@xtaolink.cn", # 作者联系方式,可写自己的邮箱地址 description="A cqwu ehall client.", # 包的简述