mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-03 18:02:33 +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:
|
||||
data = json.loads(first_line)
|
||||
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)
|
||||
sessions.append({
|
||||
"key": key,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user