fix(auth_plain): Fix post_install hook

This commit is contained in:
Ferdinand Thiessen 2021-12-18 02:12:00 +01:00
parent f507cd483d
commit ee839ce6a3
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class AuthPlain(AuthPlugin):
def install(self): def install(self):
plugins_installed(self.post_install) plugins_installed(self.post_install)
def post_install(self): def post_install(self, **kwargs):
if User.query.filter(User.deleted == False).count() == 0: if User.query.filter(User.deleted == False).count() == 0:
logger.info("Installing admin user") logger.info("Installing admin user")
role = Role.query.filter(Role.name == "Superuser").first() role = Role.query.filter(Role.name == "Superuser").first()