Skip to content

Commit

Permalink
feat(epochs): preserve cost_models_raw
Browse files Browse the repository at this point in the history
  • Loading branch information
sorki committed Sep 11, 2024
1 parent f5a9674 commit 66e3866
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Addded

- `/epochs/{number}/parameters` and `/epochs/latest/parameters`
- `cost_models_raw` field, list variant of cost_models without name mapping

## [2.1.1] - 2024-08-23

### Changed
Expand Down
1 change: 1 addition & 0 deletions src/routes/epochs/latest/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ async function route(fastify: FastifyInstance) {
}

if (rows[0].cost_models) {
rows[0].cost_models_raw = rows[0].cost_models;
rows[0].cost_models = costModelsMap(rows[0].cost_models);
}

Expand Down
1 change: 1 addition & 0 deletions src/routes/epochs/number/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ async function route(fastify: FastifyInstance) {
}

if (rows[0].cost_models) {
rows[0].cost_models_raw = rows[0].cost_models;
rows[0].cost_models = costModelsMap(rows[0].cost_models);
}

Expand Down

0 comments on commit 66e3866

Please sign in to comment.