mirror of
https://github.com/StefBuwalda/WebTech.git
synced 2025-10-30 11:19:58 +00:00
Update seed.py
This commit is contained in:
2
seed.py
2
seed.py
@@ -15,7 +15,7 @@ new_user = User(username="admin", password=generate_password_hash("admin"))
|
|||||||
|
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
# Remove all existing
|
# Remove all existing
|
||||||
Service.query.delete()
|
# Service.query.delete()
|
||||||
User.query.delete()
|
User.query.delete()
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
# Then add new
|
# Then add new
|
||||||
|
|||||||
Reference in New Issue
Block a user