Skip to content

Commit

Permalink
Merge pull request #213 from Georiviere/fix_generateduri_hydrometric_…
Browse files Browse the repository at this point in the history
…stations

Fix generated Operation URI for Hydrometric Stations (#107)
  • Loading branch information
submarcos authored Sep 14, 2023
2 parents 30b21ed + c97ff00 commit bb56c88
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,26 @@
CHANGELOG
=========

1.2.3 (2023-08-10)
1.2.3+dev (XXXX-XX-XX)
-------------------------

**Bug fixes**

* Use url lang for sensitivity datas
**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)


1.2.3 (2023-08-10)
-------------------------

**Bug fixes**

* Use url lang for sensitivity datas


1.2.2 (2023-08-09)
-------------------------

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 bb56c88

Please sign in to comment.