Skip to content

Commit 41f9d50

Browse files
committed
👔 Clarify columns for deduplication
1 parent 6286bb5 commit 41f9d50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mindlogger_data_export/processors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class DeduplicateResponsesProcessor(ReportProcessor):
118118
def _run(self, report: pl.DataFrame) -> pl.DataFrame:
119119
"""Deduplicate report by keeping latest activity_end_time."""
120120
# Define the columns that should be unique
121-
unique_cols = ["user_id", "activity_id", "activity_submission_id", "item_id"]
121+
unique_cols = ["target_user_secret_id", "source_user_secret_id", "activity_id"]
122122

123123
# Check which columns actually exist in the report
124124
existing_unique_cols = [col for col in unique_cols if col in report.columns]

0 commit comments

Comments
 (0)