Update variables instead of create with loop

This commit is contained in:
Jxck-S 2020-08-16 12:46:24 -04:00
parent 581264fb8d
commit 75af60bd72
1 changed files with 1 additions and 2 deletions

View File

@ -92,8 +92,7 @@ while True:
if plane_Dict == None: if plane_Dict == None:
feeding = False feeding = False
elif plane_Dict != None: elif plane_Dict != None:
for key, value in plane_Dict.items(): locals().update(plane_Dict)
exec(key + '=value')
print (Fore.CYAN) print (Fore.CYAN)
if config.get('DATA', 'SOURCE') == "ADSBX": if config.get('DATA', 'SOURCE') == "ADSBX":
print("Registration: ", reg) print("Registration: ", reg)