exclude keys that have been moved to openwebrx.conf
This commit is contained in:
parent
5a60869f8e
commit
25d04f4cbc
@ -4,12 +4,20 @@ from owrx.bookmarks import Bookmarks
|
||||
|
||||
|
||||
class MigrateCommand(Command):
|
||||
# these keys have been moved to openwebrx.conf
|
||||
blacklisted_keys = [
|
||||
"temporary_directory",
|
||||
"web_port",
|
||||
"aprs_symbols_path",
|
||||
]
|
||||
|
||||
def run(self, args):
|
||||
print("Migrating configuration...")
|
||||
|
||||
config = Config.get()
|
||||
# a key that is set will end up in the DynamicConfig, so this will transfer everything there
|
||||
for key, value in config.items():
|
||||
if key not in MigrateCommand.blacklisted_keys:
|
||||
config[key] = value
|
||||
config.store()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user