Compare commits

..

No commits in common. "342264d7c7708a0486cce94af936b8c3d46090a3" and "81c70b61d4906a9ef89cb9bdfa0d46d3d49e1285" have entirely different histories.

2 changed files with 0 additions and 2 deletions

View File

@ -35,5 +35,4 @@ async def get(project: str, stage: str) -> list[Config]:
result = [] result = []
async for item in collection.find({'stage': stage, 'project': project}): async for item in collection.find({'stage': stage, 'project': project}):
result.append(Config.model_validate(item)) result.append(Config.model_validate(item))
result[-1]._id = item['_id']
return result return result

View File

@ -36,5 +36,4 @@ async def get(project: str, stage: str) -> list[Experiment]:
result = [] result = []
async for item in collection.find({'stage': stage, 'project': project}): async for item in collection.find({'stage': stage, 'project': project}):
result.append(Experiment.model_validate(item)) result.append(Experiment.model_validate(item))
result[-1]._id = item['_id']
return result return result