Don't select keys when saving
This commit is contained in:
parent
5708d44a6e
commit
8e53c8e509
1 changed files with 1 additions and 13 deletions
|
@ -197,17 +197,5 @@ class RelayConfig(DotDict):
|
|||
return True
|
||||
|
||||
def save(self):
|
||||
config = {
|
||||
"db": self["db"],
|
||||
"listen": self.listen,
|
||||
"port": self.port,
|
||||
"note": self.note,
|
||||
"push_limit": self.push_limit,
|
||||
"ap": {key: self[key] for key in self.apkeys},
|
||||
"cache": {key: self[key] for key in self.cachekeys},
|
||||
}
|
||||
|
||||
with open(self._path, "w") as fd:
|
||||
yaml.dump(config, fd, sort_keys=False)
|
||||
|
||||
return config
|
||||
yaml.dump(self, fd, sort_keys=False)
|
||||
|
|
Loading…
Reference in a new issue