Skip to content

Commit

Permalink
lägg till app context så att db operationer inte krashar
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelambda committed May 4, 2024
1 parent 2ca401c commit 7d944c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tv.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
app = Flask(__name__)
app.config.from_object(config)

app.app_context().push()

db = SQLAlchemy(app)
db.create_all()

Expand Down

0 comments on commit 7d944c1

Please sign in to comment.