commit
342264d7c7
@ -35,4 +35,5 @@ async def get(project: str, stage: str) -> list[Config]:
|
||||
result = []
|
||||
async for item in collection.find({'stage': stage, 'project': project}):
|
||||
result.append(Config.model_validate(item))
|
||||
result[-1]._id = item['_id']
|
||||
return result
|
||||
|
@ -36,4 +36,5 @@ async def get(project: str, stage: str) -> list[Experiment]:
|
||||
result = []
|
||||
async for item in collection.find({'stage': stage, 'project': project}):
|
||||
result.append(Experiment.model_validate(item))
|
||||
result[-1]._id = item['_id']
|
||||
return result
|
||||
|
Loading…
Reference in New Issue
Block a user