diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/main.rs b/src/main.rs index cb3393b..2037a51 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -57,25 +57,25 @@ fn main() { | |||
57 | let mut s = Cursive::default(); | 57 | let mut s = Cursive::default(); |
58 | 58 | ||
59 | let mut gymming = Count::new("gym", 5); | 59 | let mut gymming = Count::new("gym", 5); |
60 | gymming.insert_entry(NaiveDate::from_ymd(2020, 3, 11), 7); | 60 | gymming.insert_entry(NaiveDate::from_ymd(2020, 4, 11), 7); |
61 | gymming.insert_entry(NaiveDate::from_ymd(2020, 3, 12), 8); | 61 | gymming.insert_entry(NaiveDate::from_ymd(2020, 4, 12), 8); |
62 | gymming.insert_entry(NaiveDate::from_ymd(2020, 3, 13), 9); | 62 | gymming.insert_entry(NaiveDate::from_ymd(2020, 4, 13), 9); |
63 | gymming.insert_entry(NaiveDate::from_ymd(2020, 3, 14), 10); | 63 | gymming.insert_entry(NaiveDate::from_ymd(2020, 4, 14), 10); |
64 | gymming.insert_entry(NaiveDate::from_ymd(2020, 3, 15), 11); | 64 | gymming.insert_entry(NaiveDate::from_ymd(2020, 4, 15), 11); |
65 | 65 | ||
66 | let mut reading = Bit::new("read"); | 66 | let mut reading = Bit::new("read"); |
67 | reading.insert_entry(NaiveDate::from_ymd(2020, 3, 11), true.into()); | 67 | reading.insert_entry(NaiveDate::from_ymd(2020, 4, 11), true.into()); |
68 | reading.insert_entry(NaiveDate::from_ymd(2020, 3, 12), false.into()); | 68 | reading.insert_entry(NaiveDate::from_ymd(2020, 4, 12), false.into()); |
69 | reading.insert_entry(NaiveDate::from_ymd(2020, 3, 13), true.into()); | 69 | reading.insert_entry(NaiveDate::from_ymd(2020, 4, 13), true.into()); |
70 | reading.insert_entry(NaiveDate::from_ymd(2020, 3, 14), false.into()); | 70 | reading.insert_entry(NaiveDate::from_ymd(2020, 4, 14), false.into()); |
71 | reading.insert_entry(NaiveDate::from_ymd(2020, 3, 15), true.into()); | 71 | reading.insert_entry(NaiveDate::from_ymd(2020, 4, 15), true.into()); |
72 | 72 | ||
73 | let mut walking = Bit::new("walk"); | 73 | let mut walking = Bit::new("walk"); |
74 | walking.insert_entry(NaiveDate::from_ymd(2020, 3, 11), true.into()); | 74 | walking.insert_entry(NaiveDate::from_ymd(2020, 4, 11), true.into()); |
75 | walking.insert_entry(NaiveDate::from_ymd(2020, 3, 12), false.into()); | 75 | walking.insert_entry(NaiveDate::from_ymd(2020, 4, 12), false.into()); |
76 | walking.insert_entry(NaiveDate::from_ymd(2020, 3, 13), true.into()); | 76 | walking.insert_entry(NaiveDate::from_ymd(2020, 4, 13), true.into()); |
77 | walking.insert_entry(NaiveDate::from_ymd(2020, 3, 14), false.into()); | 77 | walking.insert_entry(NaiveDate::from_ymd(2020, 4, 14), false.into()); |
78 | walking.insert_entry(NaiveDate::from_ymd(2020, 3, 15), true.into()); | 78 | walking.insert_entry(NaiveDate::from_ymd(2020, 4, 15), true.into()); |
79 | 79 | ||
80 | let mut app = App::new(); | 80 | let mut app = App::new(); |
81 | app.add_habit(Box::new(gymming)); | 81 | app.add_habit(Box::new(gymming)); |