Skip to content

Commit

Permalink
fixed monitoring endpoint for intraday
Browse files Browse the repository at this point in the history
  • Loading branch information
fboerman committed Aug 15, 2024
1 parent dca73c1 commit 675c425
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jao/jao.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@ def __init__(self, version):
else:
raise NotImplementedError

def query_monitoring(self, day: pd.Timestamp) -> List[Dict]:
# use this quick hack because this monitoring endpoint differs from all others
base_url_old = self.BASEURL
self.BASEURL = self.BASEURL.replace("IDCCA_", '').replace("IDCCB_", '')
data = self._query_base_day(day, 'monitoring')
self.BASEURL = base_url_old
return data

def query_lta(self, d_from: pd.Timestamp, d_to: pd.Timestamp):
raise NotImplementedError

Expand Down

0 comments on commit 675c425

Please sign in to comment.