Compare commits
No commits in common. "342264d7c7708a0486cce94af936b8c3d46090a3" and "81c70b61d4906a9ef89cb9bdfa0d46d3d49e1285" have entirely different histories.
342264d7c7
...
81c70b61d4
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user