Fixed the SQLite database URL for the in-memory database.
This commit is contained in:
parent
f20c462685
commit
e00c14f277
@ -49,7 +49,7 @@ def create_app(is_testing: bool = False) -> Flask:
|
|||||||
import accounting
|
import accounting
|
||||||
|
|
||||||
app: Flask = Flask(__name__)
|
app: Flask = Flask(__name__)
|
||||||
db_uri: str = "sqlite:///" if is_testing else "sqlite:///local.sqlite"
|
db_uri: str = "sqlite://" if is_testing else "sqlite:///local.sqlite"
|
||||||
app.config.from_mapping({
|
app.config.from_mapping({
|
||||||
"SECRET_KEY": os.environ.get("SECRET_KEY", token_urlsafe(32)),
|
"SECRET_KEY": os.environ.get("SECRET_KEY", token_urlsafe(32)),
|
||||||
"SESSION_COOKIE_SAMESITE": "Lax",
|
"SESSION_COOKIE_SAMESITE": "Lax",
|
||||||
|
Loading…
Reference in New Issue
Block a user