fix(report):order progress_month_report

This commit is contained in:
shahzeydyfah
2026-08-23 00:22:22 +03:30
parent 4ddac54ab7
commit 6cd225f395
3 changed files with 35 additions and 2 deletions
+2 -2
View File
@@ -10,9 +10,9 @@ from core.service.mongo_db import use_collection
class ReportRepository():
async def project_status(self, _inp: StatusReport, type):
if _inp.state:
match = {f'{type}.sts': {'$exists': 1}, 'design.state': _inp.state}
match = {f'{type}.sts': {'$exists': 1}, 'design.state': _inp.state,'sts':1}
else:
match = {f'{type}.sts': {'$exists': 1}}
match = {f'{type}.sts': {'$exists': 1},'sts':1}
if _inp.type_id:
match.update({'design.type_id': _inp.type_id})
if _inp.nature_id: