feat:add report

This commit is contained in:
shahzeydyfah
2024-10-11 12:28:03 +03:30
parent acde281f59
commit e4f61d04ca
+2 -1
View File
@@ -129,7 +129,8 @@ class ReportRepository():
return report
async def list_donut(self,_inp:DonutList):
_filter = {'design.nature_id':int(_inp.donut_select)}
if _inp.type == 1:
_filter = {'design.nature_id':int(_inp.donut_select)}
if _inp.type == 2:
if _inp.donut_select == "less_than_1000":
_filter = {'design.building_infrastructure': {'$lt': 1000}}