From ccda270de086ee4d87769e4efcd3a9fb1101d586 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 16 Oct 2024 14:19:09 +0200 Subject: [PATCH] clean code comment --- evidence/models.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/evidence/models.py b/evidence/models.py index ffc0d84..354cb89 100644 --- a/evidence/models.py +++ b/evidence/models.py @@ -129,27 +129,6 @@ class Evidence: key="hidalgo1", ).order_by("-created").values_list("uuid", flat=True).distinct() - # annotations = Annotation.objects.filter( - # owner=user.institution, - # type=Annotation.Type.SYSTEM - # ) - - # annotations = annotations.annotate( - # priority=models.Case( - # models.When(key="CUSTOM_ID", then=1), - # models.When(key="hidalgo1", then=2), - # default=3, - # output_field=models.IntegerField(), - # ) - # ) - - # # sqlite not soport distinct('uuid') - # # filtered_uuids = annotations.order_by('uuid', 'priority', '-created').distinct( - # # 'uuid').values_list("uuid", flat=True) - # filtered_uuids = annotations.order_by('uuid', 'priority', '-created').distinct( - # ).values_list("uuid", flat=True) - # return set(filtered_uuids) - def set_components(self): snapshot = ParseSnapshot(self.doc).snapshot_json self.components = snapshot['components']