fix(excel):change

This commit is contained in:
shahzeydyfah
2026-06-10 00:31:45 +03:30
parent d1f6c1830f
commit 759c2216c6
8 changed files with 768 additions and 674 deletions
+4 -3
View File
@@ -87,6 +87,7 @@ class ContractRepository(BaseRepository):
{'$match':query['query']},
{'$group': {"_id": None, 'count': {'$sum': 1},'sum':{"$sum":"$amount"}}}
]).to_list(None)
return count[0]
else:
return []
print(count)
if len(count)>0:
return count[0]
return []