From d3e254ed1cb3e56d937756e01d3032357af80a47 Mon Sep 17 00:00:00 2001 From: Steed <44191847+xujunfei@users.noreply.github.com> Date: Fri, 21 Feb 2020 11:42:39 +0800 Subject: [PATCH] Update config.py to FIX problem about fontsize map.bgcolor and map.fontsize will be overwrited after use -s option to run weathermap.py --- config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.py b/config.py index 3d55aba..81ba1eb 100644 --- a/config.py +++ b/config.py @@ -355,6 +355,10 @@ def _compare(self, old_cfg_path_file: str): for option in self.template[section]: self.map_config[section][option] = config_old[section][option] + for option in self.template['map']: + if option in ['bgcolor', 'fontsize']: + self.map_config['map'][option] = config_old['map'][option] + for section in self.map_config: if 'node-' in section: if config_old.get(section):