Skip to content

Commit

Permalink
feat: update code;
Browse files Browse the repository at this point in the history
  • Loading branch information
WenjieDu committed Jan 15, 2024
1 parent 26ae553 commit b0370f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tsdb/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ def read_configs():


def write_configs(config_parser, key_value_set):
for section, key in key_value_set.items():
value = key_value_set[section][key]
config_parser.set(section, key, value)
for section in key_value_set.keys():
for key in key_value_set[section].keys():
value = key_value_set[section][key]
config_parser.set(section, key, value)

with open(TSDB_CONFIG_FILE, "w") as f:
config_parser.write(f)
Expand Down

0 comments on commit b0370f1

Please sign in to comment.