Skip to content

Commit 4e452e6

Browse files
committed
minor update api example code (micro refactoring)
1 parent 6d00850 commit 4e452e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
# Create the Flask application
1313
app = Flask(__name__)
1414
app.config['DEBUG'] = True
15-
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
1615

1716
# Initialize SQLAlchemy
1817
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/api.db'
18+
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
1919
db = SQLAlchemy(app)
2020

2121

examples/api_nested.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
# Create the Flask application
1414
app = Flask(__name__)
1515
app.config['DEBUG'] = True
16-
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
1716

1817
# Initialize SQLAlchemy
1918
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/api_nested.db'
19+
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
2020
db = SQLAlchemy(app)
2121

2222

0 commit comments

Comments
 (0)