Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /tannousgeagea_perceptra-hub /perceptra_hub /annotations /signals.py
| import time | |
| from django.db.models.signals import post_save | |
| from django.dispatch import receiver | |
| from django.db import transaction | |
| from annotations.models import Annotation, AnnotationAudit | |
| from api.tasks import annotation_audit | |
| def update_audit_on_save(sender, instance, created, **kwargs): | |
| """Auto-update audit with edit tolerance.""" | |
| def enqueue_task(): | |
| annotation_audit.compute_annotation_audit.apply_async( | |
| args=( | |
| instance.id, | |
| created, | |
| ), | |
| ) | |
| transaction.on_commit(enqueue_task) |
Xet Storage Details
- Size:
- 611 Bytes
- Xet hash:
- 32e1792caea5ca3e5d683283853a61c3cb41417b446d7f6b76969e1b0a021169
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.