Skip to content

Commit df07966

Browse files
committed
Renamed config loader function
We support taking configuration from the environment now
1 parent fe5017e commit df07966

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mrmat_python_api_fastapi/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
22+
2223
from pydantic import BaseModel
2324

2425
from .config import Config
25-
app_config = Config.from_json_file()
26+
app_config = Config.from_context()
2627
from sqlalchemy.orm import DeclarativeBase
2728

2829
class ORMBase(DeclarativeBase):

0 commit comments

Comments
 (0)