Skip to content

Commit 15e161f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent aea0c5c commit 15e161f

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

21-flask-todo-app/src/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
"""Flask JSON API for the notes app, backed directly by D1."""
22

3+
from d1 import D1, D1Error
34
from flask import Flask, g, jsonify, request
45
from werkzeug.exceptions import HTTPException
56

6-
from d1 import D1, D1Error
7-
87
app = Flask(__name__)
98
# Preserve our own key ordering in JSON responses rather than sorting them.
109
app.json.sort_keys = False

21-flask-todo-app/src/entry.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
from workers import WorkerEntrypoint, wsgi
2-
31
from app import app
2+
from workers import WorkerEntrypoint, wsgi
43

54

65
class Default(WorkerEntrypoint):

0 commit comments

Comments
 (0)