updates
This commit is contained in:
@@ -221,7 +221,7 @@ def get_status() -> str:
|
||||
last_wake = datetime.fromisoformat(state['last_wake'])
|
||||
time_ago = datetime.now() - last_wake
|
||||
status_lines.append(f"Last wake: {last_wake.strftime('%Y-%m-%d %H:%M:%S')} ({int(time_ago.total_seconds()/60)} min ago)")
|
||||
except:
|
||||
except Exception:
|
||||
status_lines.append(f"Last wake: {state.get('last_wake')}")
|
||||
else:
|
||||
status_lines.append("Last wake: Never (daemon just started)")
|
||||
@@ -235,7 +235,7 @@ def get_status() -> str:
|
||||
status_lines.append(f"Next wake: {next_wake.strftime('%Y-%m-%d %H:%M:%S')} (in {int(time_until.total_seconds()/60)} min)")
|
||||
else:
|
||||
status_lines.append(f"Next wake: OVERDUE (was {next_wake.strftime('%Y-%m-%d %H:%M:%S')})")
|
||||
except:
|
||||
except Exception:
|
||||
status_lines.append(f"Next wake: {state.get('next_wake_timestamp')}")
|
||||
else:
|
||||
interval = state.get('interval_minutes', 60)
|
||||
|
||||
Reference in New Issue
Block a user