Skip to content

Commit

Permalink
纠正单引号嵌套错误
Browse files Browse the repository at this point in the history
  • Loading branch information
PikuZheng authored Dec 15, 2023
1 parent a8cfd47 commit 7b379fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def handleApiRequest(command, source, songId, quality):
}
try:
result = await func(songId, quality)
logger.debug(f'获取{source}_{songId}_{quality}成功,URL:{result['url']}')
logger.debug(f'获取{source}_{songId}_{quality}成功,URL:{result["url"]}')

canExpire = sourceExpirationTime[source]['expire']
expireTime = sourceExpirationTime[source]['time'] + int(time.time())
Expand All @@ -86,7 +86,7 @@ async def handleApiRequest(command, source, songId, quality):
"time": expireTime,
"url": result['url'],
})
logger.debug(f'缓存已更新:{source}_{songId}_{quality}, URL:{result['url']}, expire: {expireTime}')
logger.debug(f'缓存已更新:{source}_{songId}_{quality}, URL:{result["url"]}, expire: {expireTime}')

return {
'code': 0,
Expand Down

0 comments on commit 7b379fb

Please sign in to comment.