forked from Kohaku/maimaiDX-Api
Very SB typo fix
This commit is contained in:
parent
5727b800fe
commit
e73bdcda66
@ -106,7 +106,7 @@ def implUserMusicToDivingFish(userId:int, fishImportToken:str):
|
||||
userFullMusicDetailList = getUserFullMusicDetail(userId)
|
||||
logger.info("Got UserData, Convert to Fish Format")
|
||||
divingFishData = maimaiUserMusicDetailToDivingFishFormat(userFullMusicDetailList)
|
||||
logger.ionfo("Convert OK. Start to Update Fish Records")
|
||||
logger.info("Convert OK. Start to Update Fish Records")
|
||||
updateFishRecords(fishImportToken, divingFishData)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -10,7 +10,8 @@ levelIdDict = {
|
||||
"黄": 1,
|
||||
"红": 2,
|
||||
"紫": 3,
|
||||
"白": 4
|
||||
"白": 4,
|
||||
"宴": 5
|
||||
}
|
||||
|
||||
def getHalfWidthString(s):
|
||||
@ -58,7 +59,6 @@ def getFriendlyUserData(userId:int) -> str:
|
||||
|
||||
def getHumanReadableRegionData(userRegion:str) -> str:
|
||||
'''生成一个人类可读的地区数据'''
|
||||
#Example Data: {"userId":11088995,"length":7,"userRegionList":[{"regionId":1,"playCount":1,"created":"2023-06-23 20:06:20"},{"regionId":8,"playCount":3,"created":"2024-06-05 22:57:41"},{"regionId":13,"playCount":7,"created":"2024-10-08 19:16:27"},{"regionId":16,"playCount":3,"created":"2024-08-02 11:54:29"},{"regionId":17,"playCount":46,"created":"2023-11-18 20:14:56"},{"regionId":22,"playCount":907,"created":"2022-08-18 20:19:08"},{"regionId":27,"playCount":18,"created":"2024-11-05 23:42:43"}]}
|
||||
userRegionList = userRegion.get("userRegionList")
|
||||
logger.info(userRegionList)
|
||||
result = ""
|
||||
@ -69,7 +69,6 @@ def getHumanReadableRegionData(userRegion:str) -> str:
|
||||
result += f"\n{regionName} 游玩次数: {playCount} 首次游玩: {created}"
|
||||
return result
|
||||
|
||||
|
||||
def getHumanReadablePreview(preview_json_content:str) -> str:
|
||||
'''简单,粗略地解释 Preview 的 Json String 为人话。'''
|
||||
previewData = json.loads(preview_json_content)
|
||||
|
Loading…
x
Reference in New Issue
Block a user