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:
feeding = False
elif plane_Dict != None:
for key, value in plane_Dict.items():
exec(key + '=value')
locals().update(plane_Dict)
print (Fore.CYAN)
if config.get('DATA', 'SOURCE') == "ADSBX":
print("Registration: ", reg)