From 8a94a7e7a84194527509b31736a7731adad2b3cd Mon Sep 17 00:00:00 2001 From: Michaela Date: Sat, 9 Oct 2021 16:17:17 +1100 Subject: [PATCH] copy by value not ref --- predict_updater/lambda_function.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/predict_updater/lambda_function.py b/predict_updater/lambda_function.py index a321665..9a97f70 100644 --- a/predict_updater/lambda_function.py +++ b/predict_updater/lambda_function.py @@ -50,9 +50,9 @@ def flight_profile_by_type(sonde_type): for _def_type in SONDE_TYPE_PREDICT_DEFAULTS: if _def_type in sonde_type: - return SONDE_TYPE_PREDICT_DEFAULTS[_def_type] + return SONDE_TYPE_PREDICT_DEFAULTS[_def_type].copy() - return PREDICT_DEFAULTS + return PREDICT_DEFAULTS.copy() def getDensity(altitude):