Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Version not set to default when environment variable is unset #1

Open
jyksnw opened this issue Aug 1, 2019 · 0 comments
Open

Version not set to default when environment variable is unset #1

jyksnw opened this issue Aug 1, 2019 · 0 comments
Assignees

Comments

@jyksnw
Copy link
Owner

jyksnw commented Aug 1, 2019

votdReqURL = apiURL + strconv.Itoa(today) + "?version_id=" + versionID

Since the request URL is constructed at load in the var block, if the environment variable for the version is unset than no version is set, despite the version having a fall back later to version id 1 (KJV).

Either remove the fallback code or set the request URL at the time the request is being made.

@jyksnw jyksnw self-assigned this Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant