diff weather_server/locations.py @ 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 20c8ec56e447
line wrap: on
line diff
--- 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')