Skip to content

Commit

Permalink
✨ New HD maturity
Browse files Browse the repository at this point in the history
Co-authored-by: dukenuken09 <[email protected]>
  • Loading branch information
MariteSomEnergia and dukenuken09 committed Nov 13, 2024
1 parent 302d5b3 commit 3714e3a
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change log

## Unreleased
- Add HD maturity

## 1.1.1 (2024-08-12)
- Fix script cookies (new url and key)

Expand Down
1 change: 1 addition & 0 deletions backend/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class ProductionData(BaseModel):
'H3',
'HP',
'HC',
'HD',
]

class ContractProductionData(BaseModel):
Expand Down
1 change: 1 addition & 0 deletions frontend/src/i18n/locale-ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ PRODUCTION:
MATURITY_H2: Inicial provisional (H2)
MATURITY_H3: Intermèdia provisional (H3)
MATURITY_HP: Final provisional (HP)
MATURITY_HD: Tancament diari (HD)
LEGEND_PRODUCTION: Producció (kWh)
LEGEND_FORESEEN: Previsió (kWh)
PRODUCTION_TITLE: Producció
Expand Down
1 change: 1 addition & 0 deletions frontend/src/i18n/locale-es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ PRODUCTION:
MATURITY_H3: Intermedia provisional (H3)
MATURITY_HP: Final provisional (HP)
MATURITY_HC: Final definitiva (HC)
MATURITY_HD: Cierre diario (HD)
PLACEHOLDER_NO_CONTRACTS: No se han encontrado contratos
COOKIES_POLICY:
TITLE: Política de cookies
Expand Down
1 change: 1 addition & 0 deletions frontend/src/i18n/locale-eu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ PRODUCTION:
STYLE_BAR: Barrak
STYLE_LINE: Lerroak
MATURITY_HC: Amaierako behin betikoa (HC)
MATURITY_HD: Cierre diario (HD)
CSV_COLUMN_CONTRACT_NUMBER: Kontratu-zenbakia
CSV_COLUMN_CIL: CIL
CSV_COLUMN_INSTALL_NAME: Instalazioaren izena
Expand Down
1 change: 1 addition & 0 deletions frontend/src/i18n/locale-gl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ PRODUCTION:
MATURITY_H2: Inicial provisional (H2)
MATURITY_HP: Final provisional (HP)
MATURITY_HC: Final definitiva (HC)
MATURITY_HD: Cierre diario (HD)
CSV_COLUMN_DATETIME: Día/hora
CSV_COLUMN_INSTALL_NAME: Nome da instalación
CSV_COLUMN_UTC_OFFSET: Diferenza UTC (h)
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/ProductionPage/ChartProductionData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const DownloadCsvButton = ({ productionData, contractName, period, currentTime }
H3: t('PRODUCTION.MATURITY_H3'),
HP: t('PRODUCTION.MATURITY_HP'),
HC: t('PRODUCTION.MATURITY_HC'),
HD: t('PRODUCTION.MATURITY_HD'),
}
function handleClick() {
const contractData = currentContractData(productionData, contractName)
Expand Down

0 comments on commit 3714e3a

Please sign in to comment.