File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -339,15 +339,6 @@ class Deployment(BaseModel):
339
339
class Meta :
340
340
ordering = ["name" ]
341
341
342
- def taxa (self ) -> models .QuerySet ["Taxon" ]:
343
- return Taxon .objects .filter (Q (occurrences__deployment = self )).distinct ()
344
-
345
- def first_capture (self ) -> typing .Optional ["SourceImage" ]:
346
- return SourceImage .objects .filter (deployment = self ).order_by ("timestamp" ).first ()
347
-
348
- def last_capture (self ) -> typing .Optional ["SourceImage" ]:
349
- return SourceImage .objects .filter (deployment = self ).order_by ("timestamp" ).last ()
350
-
351
342
def get_first_and_last_timestamps (self ) -> tuple [datetime .datetime , datetime .datetime ]:
352
343
# Retrieve the timestamps of the first and last capture in a single query
353
344
first , last = (
You can’t perform that action at this time.
0 commit comments