fix
This commit is contained in:
@@ -7,7 +7,8 @@ def get_duplicate_expenses_all():
|
|||||||
Barcha counterparty boyicha bir xil summada yaratilgan expenselarni topadi
|
Barcha counterparty boyicha bir xil summada yaratilgan expenselarni topadi
|
||||||
"""
|
"""
|
||||||
expences = Expence.objects.filter(
|
expences = Expence.objects.filter(
|
||||||
is_deleted=False
|
is_deleted=False,
|
||||||
|
counterparty__isnull=False
|
||||||
).values('counterparty', 'price', 'currency').annotate(
|
).values('counterparty', 'price', 'currency').annotate(
|
||||||
count=Count('id')
|
count=Count('id')
|
||||||
).filter(count__gt=1).order_by('-count')
|
).filter(count__gt=1).order_by('-count')
|
||||||
@@ -40,4 +41,5 @@ class Command(BaseCommand):
|
|||||||
})
|
})
|
||||||
|
|
||||||
print(result)
|
print(result)
|
||||||
|
print(len(result))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user