Skip to content

Commit

Permalink
Fixed when nothing to be filled in a non-empty datafile
Browse files Browse the repository at this point in the history
  • Loading branch information
mfep committed Dec 5, 2021
1 parent 90cd870 commit c303f4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "genee"
version = "0.4.0"
version = "0.4.1"
authors = ["Lőrinc Serfőző <[email protected]>"]
edition = "2018"
default-run = "genee"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ fn fill_datafile(
mut data: DiaryData,
) -> Result<DiaryData> {
let mut missing_dates = datafile::get_missing_dates(&data, from_date, to_date);
if missing_dates.is_empty() {
if data.data.is_empty() {
missing_dates.push(
Local::today()
.naive_local()
Expand Down

0 comments on commit c303f4a

Please sign in to comment.