fix indents. webpath default to None.

This commit is contained in:
Matthew Wall
2013-10-09 00:12:38 +00:00
parent d99c050502
commit cf9d4d8ea9
2 changed files with 5 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ class StationInfo(object):
self.longitude_f = float(stn_dict['longitude'])
self.location = stn_dict.get('location', 'Unknown')
self.week_start = int(stn_dict.get('week_start', 6))
self.webpath = stn_dict.get('webpath', 'www.weewx.com')
self.webpath = stn_dict.get('webpath', None)
class Station(object):
"""Formatted version of StationInfo."""

View File

@@ -34,11 +34,10 @@ version = 2.5.0a3
##############################################################################
[Station]
#
# This section is for information about your station
#
# Description of the station location. If there is a comma in the
# description, then put the description in quotes.
location = "Hood River, Oregon"
# Latitude, longitude in decimal degrees
@@ -66,8 +65,8 @@ version = 2.5.0a3
# Simulator
station_type = Vantage
# If desired, replace with your website:
webpath = www.weewx.com
# If desired, specify the URL to your station's web site.
#webpath = www.example.com
##############################################################################