Check for number of users in fresh install

This commit is contained in:
amcmanu3 2022-08-07 11:04:12 -04:00
parent bb2621c723
commit 675912a0b6

View File

@ -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