def on_rulebook(self, *args):
        """Make sure to update when the rulebook changes"""
        if self.rulebook is None:
            return
        self.rulebook.connect(self._trigger_redata, weak=False)
        self.redata()
Make sure to update when the rulebook changes