Fix dreamer status display, watcher excludes Media/, remove NVM debt item
This commit is contained in:
+3
-1
@@ -659,9 +659,11 @@ async def dreamer_status(auth: str = Depends(require_auth)):
|
|||||||
state = {}
|
state = {}
|
||||||
last_ts = state.get("last_dream_timestamp", 0)
|
last_ts = state.get("last_dream_timestamp", 0)
|
||||||
last_dt = datetime.fromtimestamp(last_ts).strftime("%Y-%m-%d %H:%M") if last_ts else "never"
|
last_dt = datetime.fromtimestamp(last_ts).strftime("%Y-%m-%d %H:%M") if last_ts else "never"
|
||||||
|
raw_mode = state.get("last_dream_mode", "none")
|
||||||
|
display_mode = "full pipeline" if raw_mode == "pipeline" else raw_mode
|
||||||
return JSONResponse({
|
return JSONResponse({
|
||||||
"last_dream": last_dt,
|
"last_dream": last_dt,
|
||||||
"last_mode": state.get("last_dream_mode", "none"),
|
"last_mode": display_mode,
|
||||||
"last_file": state.get("last_dream_file", ""),
|
"last_file": state.get("last_dream_file", ""),
|
||||||
})
|
})
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user