diff --git a/sorting_hat_step/step.py b/sorting_hat_step/step.py index 5953820..28eb718 100644 --- a/sorting_hat_step/step.py +++ b/sorting_hat_step/step.py @@ -64,7 +64,7 @@ def produce(self, alerts: pd.DataFrame) -> None: if isinstance(alert["extra_fields"][k], list): alert["extra_fields"][k] = pickle.dumps(alert["extra_fields"][k]) # produce alert content with key of candid - self.producer.produce(alert, key=str(alert["candid"])) + self.producer.produce(alert, key=str(alert["aid"])) n_messages += 1 self.logger.info(f"{n_messages} messages Produced")