Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate All URLs to New File #20

Open
mattdonders opened this issue Dec 17, 2019 · 0 comments
Open

Migrate All URLs to New File #20

mattdonders opened this issue Dec 17, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mattdonders
Copy link
Owner

Currently all URLs are stored in config.yaml and loaded up via utils.load_config() function.

We want to take the URLs out of the configuration file because that is client specific and they have a local copy of it and move the URLs into a separate file.

This new file & retrieval function is implemented, but need to move all URL access patterns to use this URL.

def load_urls():
    """ Loads the URLs yaml file and returns a yaml object / dictionary..

    Args:
        None

    Returns:
        A yaml (dictionary) object.
    """

    with open(URLS_PATH) as ymlfile:
        urls = yaml.load(ymlfile, Loader=yaml.FullLoader)

    return urls
@mattdonders mattdonders added the enhancement New feature or request label Dec 17, 2019
@mattdonders mattdonders self-assigned this Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant