🐛 Fix xg get score

This commit is contained in:
xtaodada 2023-06-29 14:54:58 +08:00
parent 146af56314
commit c6f9a5cd92
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 3 additions and 2 deletions

View File

@ -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 = {

View File

@ -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.", # 包的简述