haldis/app/add_admins.py

26 lines
536 B
Python
Raw Normal View History

2022-04-19 21:31:40 +02:00
"""Script for adding users as admin to Haldis."""
from app import db
from models import User
2019-09-07 15:05:24 +02:00
def add() -> None:
2022-04-19 21:31:40 +02:00
"""Add users as admin."""
feli = User()
feli.configure("feliciaan", True, 0)
db.session.add(feli)
destro = User()
2019-09-05 03:33:29 +02:00
destro.configure("destro", True, 0)
db.session.add(destro)
iepoev = User()
2019-09-05 03:33:29 +02:00
iepoev.configure("iepoev", True, 1)
db.session.add(iepoev)
2019-04-04 18:27:50 +02:00
flynn = User()
2019-09-05 03:33:29 +02:00
flynn.configure("flynn", True, 0)
2019-04-04 18:27:50 +02:00
db.session.add(flynn)
# To future developers, add yourself here