summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-03-19 00:51:15 +0530
committerAndinus <andinus@nand.sh>2020-03-19 00:51:15 +0530
commitb5217a482ce5cac01bcd1fb12fb48d585e3b586f (patch)
tree8101ba9aeb75be13028207fdd9533f57097185e4
parentf6ba272eeb8329118cea2cb34fef234af6cd43fc (diff)
downloadcetus-b5217a482ce5cac01bcd1fb12fb48d585e3b586f.tar.gz
Fix logical error in execAPOD()
-rw-r--r--cmd/cetus/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cetus/main.go b/cmd/cetus/main.go
index 23ac6f4..14f0253 100644
--- a/cmd/cetus/main.go
+++ b/cmd/cetus/main.go
@@ -137,7 +137,7 @@ func execAPOD() {
 	reqInfo["date"] = string(*apodDate)
 
 	if *apodRand {
-		reqInfo["apiKey"] = apod.RandDate()
+		reqInfo["date"] = apod.RandDate()
 	}
 
 	body, err := apod.GetJson(reqInfo)