Skip to content

Incorrect retrieval of "storage_dir" #82

@DrakiaXYZ

Description

@DrakiaXYZ

Was playing around with pyMC_Repeater yesterday, and noticed that a few of the "storage_dir" fetches appear to lack nesting under "storage":
https://github.com/rightup/pyMC_Repeater/blob/dev/repeater/data_acquisition/storage_collector.py#L22

And all references to "storage_dir" in api_endpoints.py:
https://github.com/rightup/pyMC_Repeater/blob/dev/repeater/web/api_endpoints.py

How this is retrieved in http_server.py appears to be correct (Based on the example config.yaml file, though it has a different default than the others):
storage_dir = self.config.get("storage", {}).get("storage_dir", ".")

This doesn't affect a "production" deployment, but does affect running in development with the data directory set to a relative path

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions