We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c22c550 commit 1c034c0Copy full SHA for 1c034c0
icees_api/handlers.py
@@ -17,6 +17,7 @@
17
from .features.qgraph_utils import normalize_qgraph
18
from .features.sql import validate_range
19
from .features.mappings import mappings, correlations
20
+from .features.config import get_config_path
21
from .models import (
22
Features,
23
FeatureAssociation, FeatureAssociation2,
@@ -754,7 +755,8 @@ def handle_bins(
754
755
api_key: APIKey = Depends(get_api_key),
756
) -> Dict:
757
"""Return bin values."""
- with open("config/bins.json", "r") as stream:
758
+ input_file = os.path.join(get_config_path(), "bins.json")
759
+ with open(input_file, "r") as stream:
760
bins = json.load(stream)
761
if feature is not None:
762
bins = {
0 commit comments