feat:get list in register status

This commit is contained in:
shahzeydyfah
2024-06-20 16:22:33 +03:30
parent 45754b82dd
commit b8d228020b
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -15,3 +15,7 @@ class RegisterStatusRepository(BaseRepository):
return last[0]['number']
else:
return None
async def get_list(self,project_id:uuid.UUID):
list_status = await use_collection(TaskEnv.CLN_AUDIT_STATUS).find({"project_id":project_id}).to_list(None)
return list_status