Skip to content

Commit

Permalink
Merge pull request #1 from jscslld/release/0.1
Browse files Browse the repository at this point in the history
兼容flask_sqlalchemy 3.1.1
  • Loading branch information
jscslld authored Oct 16, 2023
2 parents 4261790 + e83de1a commit 9c4d337
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/applications/extensions/init_sqlalchemy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

from flask import Flask, request
from flask_marshmallow import Marshmallow
from flask_sqlalchemy import SQLAlchemy, BaseQuery
from flask_sqlalchemy import SQLAlchemy
try:
from flask_sqlalchemy import BaseQuery
except ImportError:
from flask_sqlalchemy.query import Query as BaseQuery
from marshmallow import fields
from marshmallow.validate import (URL, Email, Range, Length, Equal, Regexp,
Predicate, NoneOf, OneOf, ContainsOnly)
Expand Down

0 comments on commit 9c4d337

Please sign in to comment.