Initial commit - LEGO Instructions Manager v1.5.0
This commit is contained in:
13
poo.py
Normal file
13
poo.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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!")
|
||||
Reference in New Issue
Block a user