mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-26 21:05:49 +00:00
style: remove redundant comment in list_sessions
This commit is contained in:
parent
40867bff86
commit
d9cc144575
@ -187,8 +187,6 @@ class SessionManager:
|
|||||||
if first_line:
|
if first_line:
|
||||||
data = json.loads(first_line)
|
data = json.loads(first_line)
|
||||||
if data.get("_type") == "metadata":
|
if data.get("_type") == "metadata":
|
||||||
# Prefer the key stored in metadata; fall back to
|
|
||||||
# filename-based heuristic for legacy files.
|
|
||||||
key = data.get("key") or path.stem.replace("_", ":", 1)
|
key = data.get("key") or path.stem.replace("_", ":", 1)
|
||||||
sessions.append({
|
sessions.append({
|
||||||
"key": key,
|
"key": key,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user