mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Check for number of users in fresh install
This commit is contained in:
parent
bb2621c723
commit
675912a0b6
@ -30,9 +30,11 @@ class DatabaseBuilder:
|
||||
|
||||
def is_fresh_install(self):
|
||||
try:
|
||||
user = self.users_helper.get_by_id(1)
|
||||
if user:
|
||||
usern = self.users_helper.get_all_usernames()
|
||||
if len(usern) > 0:
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
except:
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user