[habit][library] Habit: the local day with rollover, days read, the forgiving weekly streak, the reminder schedule, medals as a pure function of the log; sessions carry their UTC offset
This commit is contained in:
@@ -83,6 +83,7 @@ pub fn op(r: &mut Rng, dev: &str, n: usize) -> Op {
|
||||
},
|
||||
13 => Op::Return { loan: format!("l-{dev}-{}", n.saturating_sub(1 + r.below(4) as usize)), date },
|
||||
14 => Op::Session {
|
||||
offset_min: None,
|
||||
id: format!("s-{dev}-{n}"),
|
||||
book,
|
||||
start: 1000,
|
||||
|
||||
Reference in New Issue
Block a user