Initial commit - LEGO Instructions Manager v1.5.0
This commit is contained in:
commit
63496b1ccd
68 files changed
+9131
No files matched your search
@@ -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