Skip to content

Commit a582803

Browse files
authored
fix(CY): fix CY wind and conventional column name when parsing html (#8197)
1 parent b5da6a1 commit a582803

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

parsers/CY.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ def parse_production(self, html, capacity: dict) -> list:
6666
datum["datetime"] = datetime.fromisoformat(val).replace(
6767
tzinfo=TIMEZONE
6868
)
69-
elif col == "Αιολική Παραγωγή":
69+
elif col == "Αιολική Παραγωγή στο ΣΜ":
7070
production["wind"] = float(val)
71-
elif col == "Συμβατική Παραγωγή":
71+
elif col == "Συμβατική Παραγωγή στο ΣΜ":
7272
production["oil"] = float(val)
7373
elif col == "Εκτίμηση Διεσπαρμένης Παραγωγής":
7474
# Because solar is explicitly listed as "Solar PV" (so no thermal with energy storage)

parsers/test/mocks/CY/response_historical_20240318.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ <h1 class="entry-title main_title">Αρχείο Ημερήσιας Παραγω
4444
<tr>
4545
<th>Timestamp</th>
4646
<th>Συνολική Διαθέσιμη Συμβατική Ικανότητα Παραγωγής</th>
47-
<th>Αιολική Παραγωγή</th>
47+
<th>Αιολική Παραγωγή στο ΣΜ</th>
4848
<th>Εκτίμηση Διεσπαρμένης Παραγωγής</th>
4949
<th>Συνολική Ζήτηση</th>
50-
<th>Συμβατική Παραγωγή</th>
50+
<th>Συμβατική Παραγωγή στο ΣΜ</th>
5151
</tr>
5252
</thead>
5353
<tbody>

parsers/test/mocks/CY/response_realtime_20240401.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ <h1 class="entry-title main_title">Ημερήσια Παραγωγή Ηλεκτ
6969
<tr>
7070
<th>Timestamp</th>
7171
<th>Συνολική Διαθέσιμη Συμβατική Ικανότητα Παραγωγής</th>
72-
<th>Αιολική Παραγωγή</th>
72+
<th>Αιολική Παραγωγή στο ΣΜ</th>
7373
<th>Εκτίμηση Διεσπαρμένης Παραγωγής</th>
7474
<th>Συνολική Ζήτηση</th>
75-
<th>Συμβατική Παραγωγή</th>
75+
<th>Συμβατική Παραγωγή στο ΣΜ</th>
7676
</tr>
7777
</thead>
7878
<tbody>

0 commit comments

Comments
 (0)