Skip to content

Commit

Permalink
Update local env config
Browse files Browse the repository at this point in the history
  • Loading branch information
mihow authored and Debian committed Dec 11, 2023
1 parent 9593c2a commit 88102f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .envs/.local/.django
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ REDIS_URL=redis://redis:6379/0
# Flower
CELERY_FLOWER_USER=QSocnxapfMvzLqJXSsXtnEZqRkBtsmKT
CELERY_FLOWER_PASSWORD=BEQgmCtgyrFieKNoGTsux9YIye0I7P5Q7vEgfJD2C4jxmtHDetFaE2jhS7K7rxaf

SENDGRID_API_KEY="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"
4 changes: 2 additions & 2 deletions ami/main/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def get_queryset(self) -> QuerySet:
# detections_count=models.Count("captures__detections", distinct=True),
occurrences_count=models.Count("occurrences", distinct=True),
taxa_count=models.Count("occurrences__determination", distinct=True),
)
).prefetch_related("occurrences", "occurrences__determination")
return qs


Expand Down Expand Up @@ -608,7 +608,7 @@ def get_queryset(self) -> QuerySet:
qs = qs.prefetch_related(Prefetch("occurrences", queryset=Occurrence.objects.none()))
qs = qs.annotate(
occurrences_count=models.Value(0),
events_count=models.Value(0),
# events_count=models.Value(0),
last_detected=models.Value(None, output_field=models.DateTimeField()),
)

Expand Down

0 comments on commit 88102f7

Please sign in to comment.