Anki/pylib/anki/scheduler
RumovZ 80ed94ed08
Cap steps (#1548)
* Fix steps being mistaken for seconds

* Cap steps at `u32::max` seconds

* Fix overflow of steps in Rust

* Prevent overflow of `IntervalKind`

* Prevent overflow in `revlod/mod.rs`

Also replace some `as` with `from` and `try_from` as is recommended to
highlight potential issues.

* Ensure v2 doesn't store overflowing revlog ivls

* Lower steps cap in deck options

Whereas large card intervals are converted to days, revlog intervals use
i32s to store large numbers of seconds.

* Format
2021-12-15 18:46:26 +10:00
..
__init__.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
base.py add unbury_cards() op 2021-12-08 09:44:47 +10:00
legacy.py run pyupgrade over codebase [python upgrade required] 2021-10-04 15:05:48 +10:00
v1.py retire the v1 scheduler 2021-11-24 14:12:56 +10:00
v2.py Cap steps (#1548) 2021-12-15 18:46:26 +10:00
v3.py convert invariant assertions to if statements 2021-11-25 17:47:50 +10:00