changeset 22:e229afdd447b

locations.py: store location name into the right place.
author Paul Fisher <paul@pfish.zone>
date Fri, 01 Nov 2019 00:48:56 -0400
parents beb42c835c52
children 88249e451566
files setup.py weather_server/locations.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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=[
--- 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')