13 lines
319 B
Python
13 lines
319 B
Python
from app import create_app, db
|
|
from app.models.user import User
|
|
|
|
app = create_app()
|
|
with app.app_context():
|
|
# Find your user
|
|
user = User.query.filter_by(username='jessikitty').first()
|
|
|
|
# Make them admin
|
|
user.is_admin = True
|
|
db.session.commit()
|
|
|
|
print(f"{user.username} is now an admin!") |