Merge branch 'master' of https://github.com/Aevann1/Drama
This commit is contained in:
commit
ce3be3bcb2
15 changed files with 41 additions and 41 deletions
|
@ -321,7 +321,7 @@ def sign_up_post(v):
|
|||
g.db.add(ref_user)
|
||||
|
||||
id_1 = g.db.query(User.id).options(lazyload('*')).filter_by(id=7).count()
|
||||
users_count = g.db.query(User.id).count() #paranoid
|
||||
users_count = g.db.query(User.id).options(lazyload('*')).count() #paranoid
|
||||
if id_1 == 0 and users_count < 7: admin_level=6
|
||||
else: admin_level=0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue