# HG changeset patch # User Paul Fisher # Date 1572583736 14400 # Node ID e229afdd447b071b35fffe14debd1c0ddfdf846d # Parent beb42c835c52f9de6a9f51ac7a425e27f0c025ea locations.py: store location name into the right place. diff -r beb42c835c52 -r e229afdd447b setup.py --- a/setup.py Sat Oct 19 18:40:48 2019 -0400 +++ b/setup.py Fri Nov 01 00:48:56 2019 -0400 @@ -2,7 +2,7 @@ setuptools.setup( name='weather-server', - version='0.0.6', + version='0.0.7', packages=setuptools.find_packages(), python_requires='>=3.7', install_requires=[ diff -r beb42c835c52 -r e229afdd447b weather_server/locations.py --- a/weather_server/locations.py Sat Oct 19 18:40:48 2019 -0400 +++ b/weather_server/locations.py Fri Nov 01 00:48:56 2019 -0400 @@ -27,7 +27,7 @@ try: with open(config_file, 'r') as infile: parser.read_file(infile) - self.location = parser.get( + self.name = parser.get( 'location', 'name', fallback='Weather station') self.tz_name = parser.get('location', 'timezone', fallback='UTC') self.password = parser.get('location', 'password')