fix: 日志记录失败 * n

This commit is contained in:
helloplhm-qwq 2024-03-03 17:11:52 +08:00
parent 5e70560df9
commit 64a1b2ffac
No known key found for this signature in database
GPG Key ID: B7542212855B2C26

View File

@ -116,7 +116,7 @@ def highlight_error(e):
code = read_code(p, l) code = read_code(p, l)
cc = [] cc = []
viewed = False viewed = False
for i in len(code['result']): for i in range(len(code['result'])):
c = code["result"][i] c = code["result"][i]
if (c.startswith(code['current']) and (i <= 3)): if (c.startswith(code['current']) and (i <= 3)):
viewed = True viewed = True