feat:add get list for progress rial and physical
This commit is contained in:
@@ -21,4 +21,8 @@ class RialProgressRepository(BaseRepository):
|
||||
async def create(self,_inp:RialProgressModel):
|
||||
create = await mongo_inserter(_inp,TaskEnv.CLN_MONITOR_RIAL,getter=self.get)
|
||||
await ProjectRepository().set_sts_two_for_monitor(_inp.project_id)
|
||||
return create
|
||||
return create
|
||||
|
||||
async def list_by_project(self, _id: uuid.UUID):
|
||||
_get = await use_collection(TaskEnv.CLN_MONITOR_RIAL).find({"project_id": _id}).to_list(None)
|
||||
return _get
|
||||
Reference in New Issue
Block a user