This website requires JavaScript.
Explore
Help
Sign In
kuhyx
/
screen-locker
Watch
1
Star
0
Fork
0
You've already forked screen-locker
mirror of
https://github.com/kuhyx/screen-locker.git
synced
2026-07-04 15:23:02 +02:00
Code
Issues
Actions
2
Packages
Projects
Releases
Wiki
Activity
e25d806742
screen-locker
/
screen_locker
/
shutdown_base.json
5 lines
91 B
JSON
Raw
Normal View
History
Unescape
Escape
Update screen locker state: scheduled skips and runtime state files - Add 2026-05-29/30 to scheduled_skips.json - Track extra_benefits_state, shutdown_base, sick_history, workout_log JSON files Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VuiPt6GPWkxpLbJFrnfy8U
2026-06-28 08:11:57 +02:00
{
"base_mon_wed_hour"
:
21
,
"base_thu_sun_hour"
:
21
,
Fix silent skip-credit bypass; replace with weekly shutdown-time bonus The screen locker skipped enforcement on 2026-07-03 without ever showing a lock: a banked skip credit (earned from a prior 5+/week streak) was consumed automatically with no confirmation and no visible log. Reworked the whole reward mechanic instead of just gating it, since banking a "skip a future workout" credit works against maximizing weekly workouts: - Removed skip credits entirely (has_skip_credit/consume_skip_credit and the confirmation dialog built to gate them). The only same-day skip paths left are heat_skip and sick_day, both requiring a genuine reason. - Extra workouts (5+/week) now bank shutdown-time-later hours for the following week instead — comfort, not reduced enforcement. Reuses the existing _adjust_shutdown_time_by and reset_to_base_if_new_day's previously-discarded return value as the once-per-day gate. - early_bird and sick_day no longer pollute workout_log.json. early_bird is a same-day pending marker now stored in its own self-expiring, HMAC-signed file; sick_day is sourced entirely from sick_history.json (already the real source of truth). Fixes an accidental-safety gap where "already took a sick day today" only halted startup by luck. - Cleaned up 3 stale non-workout entries already in workout_log.json. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QdTccgbK7624kfoaV6CtXS
2026-07-03 15:27:08 +02:00
"last_reset_date"
:
"2026-07-03"
Update screen locker state: scheduled skips and runtime state files - Add 2026-05-29/30 to scheduled_skips.json - Track extra_benefits_state, shutdown_base, sick_history, workout_log JSON files Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VuiPt6GPWkxpLbJFrnfy8U
2026-06-28 08:11:57 +02:00
}
Reference in New Issue
Copy Permalink