def METHOD_NAME(self, domain_id):
    with app.app_context():
        domain_name = (
            r.table("domains").get(domain_id).pluck("name").run(db.conn)["name"]
        )
    return self.generate_default_card(domain_id, domain_name)