Skip to content

Commit

Permalink
.txt removed from DokuWiki links
Browse files Browse the repository at this point in the history
  • Loading branch information
swfrx authored Jul 17, 2022
1 parent 2795c0d commit fdf6795
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/user/sguweewx.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_extension_list(self, timespan, db_lookup):
noaa_namespace = self.generator.skin_dict['Extras'].get(
'sguweewx.noaa_namespace', 'weather:noaa:')
noaa_year = self.generator.skin_dict['Extras'].get(
'sguweewx.noaa_year', 'noaa-2[0-9][0-9][0-9].txt' )
'sguweewx.noaa_year', 'noaa-2[0-9][0-9][0-9]' )

# Month number & short name
months=[('01','Jan'),('02','Feb'),('03','Mar'),('04','Apr'),('05','May'),('06','Jun'),('07','Jul'),('08','Aug'),('09','Sep'),('10','Oct'),('11','Nov'),('12','Dec')]
Expand Down Expand Up @@ -100,7 +100,7 @@ def get_extension_list(self, timespan, db_lookup):
# Append the link to each month's file plus the short month name,
# or a cell with just a hyphen if the month file doesn't exist
for month in months:
month_file = yyyy + '-' + month[0] + '.txt'
month_file = yyyy + '-' + month[0]
month_name = month[1]
row = row + self.do_link ( noaa_namespace, month_file, month_name )

Expand Down

0 comments on commit fdf6795

Please sign in to comment.