Skip to content

Commit

Permalink
1. Fix: 相同用户重复查询不会更新数据(冗余的判断)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hpero4 committed Aug 19, 2024
1 parent 5af9390 commit ab80fa7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/view/search_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,7 @@ def __showSummonerNotFoundMsg(self):
parent=self
)

# Fix: 超快速的在候选栏选中两次同样puuid会起两个task加载战绩, 100%干掉客户端 -- By Hpero4
@asyncLockDecorator('loadFirstPageLock')
async def searchAndShowFirstPage(self, puuid=None):
name = self.searchLineEdit.text()
Expand All @@ -1108,8 +1109,6 @@ async def searchAndShowFirstPage(self, puuid=None):
summoner = await connector.getSummonerByPuuid(name)
else:
summoner = await connector.getSummonerByName(name)
# Fix: 超快速的在候选栏选中两次同样puuid会起两个task加载战绩, 100%干掉客户端 -- By Hpero4
puuid = summoner['puuid']

if 'errorCode' in summoner:
self.__showSummonerNotFoundMsg()
Expand Down

0 comments on commit ab80fa7

Please sign in to comment.