Skip to content

Commit

Permalink
fix for issue-581 (#583)
Browse files Browse the repository at this point in the history
* fix for issue-581

* flake8
  • Loading branch information
maaikelimper authored Nov 23, 2023
1 parent 9abeba2 commit cd5685a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wis2box-management/wis2box/metadata/station.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ def get_valid_wsi(wsi: str = '', tsi: str = '') -> Union[str, None]:

if wsi in stations:
return wsi
else:
for station in stations.values():
if station['properties']['traditional_station_identifier'] == tsi:
return wsi

return None

Expand Down

0 comments on commit cd5685a

Please sign in to comment.