forked from rDrama/rDrama
fix devrama jannying
parent
8e221de07e
commit
4add61d045
|
@ -283,10 +283,6 @@ def sign_up_post(v:Optional[User]):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
users_count = g.db.query(User).count()
|
users_count = g.db.query(User).count()
|
||||||
if users_count == 4:
|
|
||||||
admin_level=3
|
|
||||||
session["history"] = []
|
|
||||||
else: admin_level=0
|
|
||||||
|
|
||||||
profileurl = None
|
profileurl = None
|
||||||
if PFP_DEFAULT_MARSEY:
|
if PFP_DEFAULT_MARSEY:
|
||||||
|
@ -302,6 +298,10 @@ def sign_up_post(v:Optional[User]):
|
||||||
profileurl=profileurl
|
profileurl=profileurl
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if users_count == 4:
|
||||||
|
new_user.admin_level = 3
|
||||||
|
session["history"] = []
|
||||||
|
|
||||||
g.db.add(new_user)
|
g.db.add(new_user)
|
||||||
|
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
Loading…
Reference in New Issue