This repository was archived by the owner on Nov 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 22__pycache__ /
33* .py [cod ]
44* $py.class
5-
5+ climsoft_uploads /
66# C extensions
77* .so
88
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ django-colorfield
66djantic
77email-validator
88Faker
9+ Flask
910fastapi
1011FastAPI-SQLAlchemy
11- Flask
1212Flask-MySQLdb
1313Flask-RESTful
1414mch-api @ git+https://github.com/opencdms/mch-api.git@main
Original file line number Diff line number Diff line change 44from sqlalchemy import create_engine
55from starlette .middleware .wsgi import WSGIMiddleware
66from climsoft_api .main import get_app as get_climsoft_app
7+ from climsoft_api .config import settings as climsoft_settings
78from tempestas_api .wsgi import application as surface_application
89from mch_api .api_mch import app as mch_api_application
910from fastapi import FastAPI , Request
@@ -90,7 +91,9 @@ def create_default_user():
9091 ClimsoftSessionLocal = sessionmaker (climsoft_engine )
9192 session = ClimsoftSessionLocal ()
9293 try :
93- clim_user_role = session .query (climsoft_models .ClimsoftUser ).filter_by (
94+ clim_user_role = session .query (
95+ climsoft_models .ClimsoftUser
96+ ).filter_by (
9497 userName = settings .DEFAULT_USERNAME
9598 ).one_or_none ()
9699
You can’t perform that action at this time.
0 commit comments