Skip to content

Commit f717888

Browse files
committed
chore: remove unused methods on Deployment
1 parent 0797eb8 commit f717888

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

ami/main/models.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -339,15 +339,6 @@ class Deployment(BaseModel):
339339
class Meta:
340340
ordering = ["name"]
341341

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-
351342
def get_first_and_last_timestamps(self) -> tuple[datetime.datetime, datetime.datetime]:
352343
# Retrieve the timestamps of the first and last capture in a single query
353344
first, last = (

0 commit comments

Comments
 (0)