Skip to content

Commit 7d944c1

Browse files
committed
lägg till app context så att db operationer inte krashar
1 parent 2ca401c commit 7d944c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tv.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
app = Flask(__name__)
1111
app.config.from_object(config)
1212

13+
app.app_context().push()
14+
1315
db = SQLAlchemy(app)
1416
db.create_all()
1517

0 commit comments

Comments
 (0)