def before_request_admin_exist(): """ Ensure databases exist and at least one user is in the user database. """ if not admin_exists(): return redirect(url_for("routes_authentication.create_admin"))
def before_request_admin_exist(): """ Ensure databases exist and at least one user is in the user database. """ if not admin_exists(): return redirect(url_for("routes_authentication.create_admin"))