Compare commits
No commits in common. "acc9a15a0afdaf6641e349eb32b47e3a70fb5f44" and "b3037b357e480e5b5a6aa04c8ed65ae857ca6230" have entirely different histories.
acc9a15a0a
...
b3037b357e
@ -28,7 +28,7 @@ class ResponseBody(pydantic.BaseModel):
|
||||
router = fastapi.APIRouter()
|
||||
|
||||
|
||||
@router.get('/api/v1/fetch')
|
||||
@router.post('/api/v1/fetch')
|
||||
async def execute(stage: str, project: str):
|
||||
confs, exps, staffs = await asyncio.gather(
|
||||
configs.get(project=project, stage=stage),
|
||||
|
@ -35,5 +35,4 @@ 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,5 +36,4 @@ 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