Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gecBurton committed Oct 17, 2024
1 parent 9b73b96 commit 31df6bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_app/redbox_app/redbox_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from django.contrib.postgres.fields import ArrayField
from django.core import validators
from django.db import models
from django.db.models import Max, Min, Prefetch, Sum, UniqueConstraint
from django.db.models import Max, Min, Prefetch, UniqueConstraint
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from django_use_email_as_username.models import BaseUser, BaseUserManager
Expand Down Expand Up @@ -787,7 +787,7 @@ def get_messages_ordered_by_citation_priority(cls, chat_id: uuid.UUID) -> Sequen
)

def log(self):
token_sum = sum(x.token_count for x in self.chatmessagetokenuse_set.all())
token_sum = sum(token_use.token_count for token_use in self.chatmessagetokenuse_set.all())
elastic_log_msg = {
"@timestamp": self.created_at.isoformat(),
"id": str(self.id),
Expand Down

0 comments on commit 31df6bd

Please sign in to comment.