Skip to content

Commit

Permalink
Syntax fix in UVIndex.get_waf_path()
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Ngai committed Jul 10, 2024
1 parent f97ce03 commit 3ad8740
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions woudc_data_registry/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1421,13 +1421,14 @@ def timestamp_utc(self):
def get_waf_path(self, dict_):
"""generate WAF url"""

datasetdirname = f"{self.dataset_id}_{dict_['dataset_level']}_{dict_['dataset_form']}", # noqa
datasetdirname = f"{self.dataset_id}_{dict_['dataset_level']}_{dict_['dataset_form']}" # noqa
timestamp_date = datetime.datetime.strptime(
dict_['timestamp_date'], '%Y-%m-%d').date()
url_tokens = [
config.WDR_WAF_BASEURL.rstrip('/'),
'Archive-NewFormat',
datasetdirname, f"{dict_['station_type'].lower()}{self.station_id}", # noqa
datasetdirname,
f"{dict_['station_type'].lower()}{self.station_id}", # noqa
dict_['instrument_name'].lower(),
timestamp_date.strftime('%Y'),
dict_['filename']
Expand Down

0 comments on commit 3ad8740

Please sign in to comment.