Skip to content

Commit c2a1c10

Browse files
authored
fix(TH price): make the parser into an hourly one (#8437)
1 parent f60aa6d commit c2a1c10

File tree

1 file changed

+7
-1
lines changed
  • electricitymap/contrib/parsers

1 file changed

+7
-1
lines changed

electricitymap/contrib/parsers/TH.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,13 @@ def fetch_price(
230230
prices.append(
231231
zoneKey=zone_key,
232232
currency="THB",
233-
datetime=_as_localtime(datetime.now().replace(second=0, microsecond=0)),
233+
datetime=_as_localtime(
234+
datetime.now().replace(
235+
minute=0,
236+
second=0,
237+
microsecond=0,
238+
)
239+
),
234240
price=float(price_base) * 1000 + float(price_ft) * 10,
235241
source=MEA_URL,
236242
)

0 commit comments

Comments
 (0)