forked from PeterSurda/inoreader2readwise
fix: with app.app_context()
This commit is contained in:
parent
089583960b
commit
34282e6f30
|
@ -17,8 +17,9 @@ class Token(db.Model):
|
|||
def __repr__(self):
|
||||
return f'<Token {self.id}>'
|
||||
|
||||
# Initialize the database
|
||||
db.create_all()
|
||||
# Create an application context
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
|
||||
# API to create a new token entry
|
||||
@app.route('/token', methods=['POST'])
|
||||
|
|
Loading…
Reference in New Issue
Block a user