remotes/1693045480750635534/spooky-22
parent
50d9ba31c3
commit
e590bfac3e
|
@ -321,9 +321,9 @@ def sign_up_post(v):
|
|||
|
||||
g.db.add(ref_user)
|
||||
|
||||
id_1 = g.db.query(User.id).options(lazyload('*')).filter_by(id=6).count()
|
||||
id_1 = g.db.query(User.id).options(lazyload('*')).filter_by(id=7).count()
|
||||
users_count = g.db.query(User.id).count() #paranoid
|
||||
if id_1 == 0 and users_count < 6: admin_level=6
|
||||
if id_1 == 0 and users_count < 7: admin_level=6
|
||||
else: admin_level=0
|
||||
|
||||
new_user = User(
|
||||
|
|
Loading…
Reference in New Issue