Skip to content

Commit

Permalink
Merge pull request #2210 from gtech-mulearn/dev
Browse files Browse the repository at this point in the history
Merge dev to dev-server
  • Loading branch information
jelanmathewjames authored Aug 13, 2024
2 parents 4fd30ce + 05810d2 commit 6e405db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/common/common_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def learning_circles_count(self):
return learning_circles_count

def karma_pow_count(self):
karma_pow_count = KarmaActivityLog.objects.aaggregate(karma_count=Sum('karma'), pow_count=Count('id'))
karma_pow_count = KarmaActivityLog.objects.aggregate(karma_count=Coalesce(Sum('karma'), 0), pow_count=Count('id'))
return karma_pow_count

def get_data(self, sender):
Expand Down

0 comments on commit 6e405db

Please sign in to comment.