Skip to content

Commit

Permalink
Fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
janbaykara committed May 17, 2022
1 parent cc9b574 commit a46b952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/django.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ def get_analytics_data(self):
}
)

if self.gifts_bought is not None and self.gifts_bought.count() > 0:
data = {"gifts_bought": self.gifts_bought.count()}
if self.gifts_bought is not None and len(self.gifts_bought):
data = {"gifts_bought": len(self.gifts_bought)}
user_data["register"].update(data)
user_data["set"].update(data)

Expand Down

0 comments on commit a46b952

Please sign in to comment.