Compare commits
3 Commits
dev
..
76387ad17a
| Author | SHA1 | Date | |
|---|---|---|---|
| 76387ad17a | |||
| 4312efc15c | |||
| 0e2fe7c1e3 |
+1
-9
@@ -168,16 +168,8 @@ def scan_thordata(root: str) -> Dict[str, Dict[str, Any]]:
|
||||
parsed = parse_mlg_filename(fname)
|
||||
if not parsed:
|
||||
continue
|
||||
|
||||
unit_id, _ = parsed # keep unit_id only
|
||||
unit_id, ts = parsed
|
||||
full_path = os.path.join(unit_path, fname)
|
||||
|
||||
try:
|
||||
mtime = os.path.getmtime(full_path)
|
||||
ts = datetime.fromtimestamp(mtime)
|
||||
except Exception:
|
||||
continue
|
||||
|
||||
current = unit_map.get(unit_id)
|
||||
if current is None or ts > current["last_call"]:
|
||||
unit_map[unit_id] = {
|
||||
|
||||
Reference in New Issue
Block a user