diff options
author | Andinus <andinus@nand.sh> | 2020-03-25 02:42:00 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-03-25 02:42:00 +0530 |
commit | db077551879bf2fee3cc54f7b25c39c21965c600 (patch) | |
tree | 6c58d94ecc88707e019ea289453c143d52e4fb28 /cmd | |
parent | a56fb80defa09426fac74d9c0715a52ab55b099b (diff) | |
download | cetus-db077551879bf2fee3cc54f7b25c39c21965c600.tar.gz |
Describe bug in program
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/cetus/bpod.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/cetus/bpod.go b/cmd/cetus/bpod.go index d26e292..d16dc22 100644 --- a/cmd/cetus/bpod.go +++ b/cmd/cetus/bpod.go @@ -104,6 +104,13 @@ func execBPOD() { res.StartDate = dt.Format("2006-01-02") file = fmt.Sprintf("%s/%s.json", cacheDir, res.StartDate) + // Here we are saving the file after unmarshal but causes a + // bug in the program. Random flag was passed so 7 images will + // be retrieved & 7 will get saved in this json file. This + // will cause error when `cetus set bpod -random` is run for + // the first time on specific date & then `cetus set bpod` is + // run, the second command will set random background because + // the first one has downloaded all 7 in the json file. if random { // Write body to the cache so that it can be read // later. |