Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ErrorNoInternet committed Jan 1, 2023
1 parent 0662fe4 commit c2b5df2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ pub fn statistics_command(db: &Database) {
},
Err(_) => 0,
};
let next_day_key = format!("day.{}.{}", current_time.month(), current_time.day() + 1);
let next_day = current_time + chrono::Duration::days(1);
let next_day_key = format!("day.{}.{}", next_day.month(), next_day.day());
let next_day_counter: i64 = match db.get(next_day_key.clone()) {
Ok(next_day_counter) => match next_day_counter.parse() {
Ok(next_day_counter) => next_day_counter,
Expand Down

0 comments on commit c2b5df2

Please sign in to comment.