feat(report):add status agreement

This commit is contained in:
shahzeydyfah
2025-01-24 11:39:05 +03:30
parent 5ec724d252
commit 3e01a0bd75
+2 -2
View File
@@ -436,13 +436,13 @@ class ReportRepository():
async def design_sts(self):
result = await use_collection(TaskEnv.CLN_PROJECT).aggregate([
{"$group":{"_id":'$design.sts','count':{'$sum':1},"projectIds": {"$addToSet": "$_id"}}}
])
]).to_list(None)
return result
async def status_agreement(self):
result = await use_collection(TaskEnv.CLN_PROJECT).aggregate([
{"$group":{"_id":'$design.status_agreement','count':{'$sum':1},"projectIds": {"$addToSet": "$_id"}}}
])
]).to_list(None)
return result