mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Add writeMultipleHabits to write a scores file and a checkmarks file that contains scores and checkmarks of multiple habits. Add getTimeframe because it was necessary to get the timeframe between all habits so that row data could be populated correctly for habits that started before/after other habits. Move writeCheckmarks to below writeScores since it wasn't called until after writeScores in writeHabits. Add getByInterval to ScoreList, MemoryScoreList, and SQLiteScoreList to get scores between a given interval - simiarly to CheckmarkList. Add getValues (ScoreList) to get all values between a given timeframe. Add getNewest to get the newest repetition in a list and to correspond with getOldest. Add getDaysBetween to DateUtils to quickly get the number of days between two timestamps. Add tests for the new functions.