Optimised to call set_end_index_today less when writing, expensive when we're already at the end.
Optimised to call set_end_index_today less when writing, expensive when we're already at the end.

jontuk/pychro,jontuk/pychro,jontuk/pychro,jontuk/pychro