fix: with app.app_context() #1

Merged
swapnil merged 1 commits from PeterSurda/inoreader2readwise:feature/separate-services into feature/separate-services 2024-01-24 13:18:24 +01:00
Showing only changes of commit 6ad03b120c - Show all commits

View File

@ -17,7 +17,8 @@ class Token(db.Model):
def __repr__(self):
return f'<Token {self.id}>'
# Initialize the database
# Create an application context
with app.app_context():
db.create_all()
# API to create a new token entry