This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
publik-bi/bijoe/utils.py

15 lines
313 B
Python

import glob
import json
from django.conf import settings
from .schemas import Warehouse
def get_warehouses():
warehouses = []
for pattern in settings.BIJOE_SCHEMAS:
for path in glob.glob(pattern):
warehouses.append(Warehouse.from_json(json.load(open(path))))
return warehouses