@classmethod
def get_admins(cls):
    users = cls.query.all()
    admin_users = []
    for user in users:
        if user.email.endswith('@localhost'):
            continue
        if user.is_admin:
            admin_users.append(user)
    return admin_users
@classmethod
def get_admins(cls):
    users = cls.query.all()
    admin_users = []
    for user in users:
        if user.email.endswith('@localhost'):
            continue
        if user.is_admin:
            admin_users.append(user)
    return admin_users