Skip to content

Commit fd59272

Browse files
committed
avoid duplicate moderation events
1 parent 5b06f6a commit fd59272

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

osf/metrics/es8_metrics.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ def _get_unique_together_values(self):
247247

248248

249249
class RegistriesModerationMetricsEs8(djelme.EventRecord):
250+
UNIQUE_TOGETHER_FIELDS = (
251+
'timestamp', 'registration_id', 'trigger', 'from_state', 'to_state', 'user_id'
252+
)
253+
250254
registration_id: str
251255
provider_id: str
252256
trigger: str

0 commit comments

Comments
 (0)