2022-04-19 21:31:40 +02:00
|
|
|
"""Script for adding users as admin to Haldis."""
|
2022-04-19 22:03:00 +02:00
|
|
|
from models import User
|
2022-04-19 21:31:40 +02:00
|
|
|
|
2015-04-04 14:11:55 +02:00
|
|
|
from app import db
|
|
|
|
|
|
|
|
|
2019-09-07 15:05:24 +02:00
|
|
|
def add() -> None:
|
2022-04-19 21:31:40 +02:00
|
|
|
"""Add users as admin."""
|
2015-04-04 14:11:55 +02:00
|
|
|
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)
|
2015-04-04 14:11:55 +02:00
|
|
|
db.session.add(destro)
|
|
|
|
|
|
|
|
iepoev = User()
|
2019-09-05 03:33:29 +02:00
|
|
|
iepoev.configure("iepoev", True, 1)
|
2015-04-04 14:11:55 +02:00
|
|
|
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
|