Skip to content

Commit

Permalink
更新版本号至 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed May 3, 2024
1 parent cdf71bc commit e1e3663
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Config(QConfig):

YEAR = 2023
AUTHOR = "Zaphkiel"
VERSION = "0.11.1"
VERSION = "0.12.0"
FEEDBACK_URL = "https://github.com/Zzaphkiel/Seraphine/issues?q=is%3Aissue"
GITHUB_URL = "https://github.com/Zzaphkiel/Seraphine"
LOCAL_PATH = f"{os.getenv('APPDATA')}\\Seraphine"
Expand Down
2 changes: 1 addition & 1 deletion app/lol/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ async def getSummonerByPuuidViaSGP(self, token, puuid):
res = await self.__sgp__get(url, token)
return await res.json()

def isInMainLand(self):
def isInMainland(self):
return self.inMainLand

@needLcu()
Expand Down
4 changes: 2 additions & 2 deletions app/lol/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ async def parseAllyGameInfo(session, currentSummonerId, useSGP=False):
# 排位会有预选位
isRank = bool(session["myTeam"][0]["assignedPosition"])

if useSGP and connector.isInMainLand():
if useSGP and connector.isInMainland():
# 如果是国服就优先尝试 SGP
try:
token = await connector.getSGPtoken()
Expand Down Expand Up @@ -783,7 +783,7 @@ async def parseGameInfoByGameflowSession(session, currentSummonerId, side, useSG
else:
team, _ = separateTeams(data, currentSummonerId)

if useSGP and connector.isInMainLand():
if useSGP and connector.isInMainland():
# 如果是国服就优先尝试 SGP
try:
token = await connector.getSGPtoken()
Expand Down

0 comments on commit e1e3663

Please sign in to comment.