feat:add get list for progress rial and physical

This commit is contained in:
shahzeydyfah
2024-09-21 13:39:18 +03:30
parent bf5f1598f2
commit 248ef67e45
4 changed files with 21 additions and 1 deletions
@@ -44,3 +44,7 @@ class PhysicalProgressRepository(BaseRepository):
create = await mongo_inserter(_inp, COLLECTION, getter=self.get)
await ProjectRepository().set_sts_two_for_monitor(_inp.project_id)
return create
async def list_by_project(self,_id:uuid.UUID):
_get = await use_collection(COLLECTION).find({"project_id":_id}).to_list(None)
return _get