2019-09-09 23:19:21 +02:00
|
|
|
"Script for adding users as admin to Haldis."
|
2015-04-04 14:11:55 +02:00
|
|
|
from app import db
|
|
|
|
from models import User
|
|
|
|
|
|
|
|
|
2019-09-07 15:05:24 +02:00
|
|
|
def add() -> None:
|
2019-09-09 23:19:21 +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
|