Skip to content

Commit

Permalink
🐛 [FIX] Computation of opetation uri for hydrometric stations (ref #107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien Potiron committed Sep 7, 2023
1 parent 0355b7d commit 5448509
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ CHANGELOG
1.2.3+dev (XXXX-XX-XX)
-------------------------

**Bug fix**

- Use code_site in operation uri for hydrometric stations instead of station_code (ref #107)

**Enhancement**

- Improve CSS of the altitude profile of altimetry (#210)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def create_or_update_stations(self, results, verbosity, with_parameters=False):
uri_station = "https://id.eaufrance.fr/StationHydro/{}".format(
station['code_station'],
) or ""
operations_uri = f"{self.operations_url}{station['code_station']}/series"
operations_uri = f"{self.operations_url}{station['code_site']}/series"
station_obj, station_created = Station.objects.update_or_create(
code=station['code_station'],
defaults={
Expand Down

0 comments on commit 5448509

Please sign in to comment.