From f892b68a22b0687d6dc7e4369e273991c3a5e53f Mon Sep 17 00:00:00 2001 From: ljacobsson Date: Wed, 9 Aug 2023 15:46:57 +0200 Subject: [PATCH] [samp local] fix broken lambda context in Python --- src/commands/local/runtime-support/python/entrypoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/local/runtime-support/python/entrypoint.py b/src/commands/local/runtime-support/python/entrypoint.py index 2d04765..7336ced 100644 --- a/src/commands/local/runtime-support/python/entrypoint.py +++ b/src/commands/local/runtime-support/python/entrypoint.py @@ -58,9 +58,9 @@ def convert_camel_to_snake(data): for key, value in data.items(): if isinstance(value, dict) or isinstance(value, list): value = convert_camel_to_snake(value) - if value == "memory_limit_in_m_b": - value = "memory_limit_in_mb" new_key = camel_to_snake(key) + if new_key == "memory_limit_in_m_b": + new_key = "memory_limit_in_mb" new_dict[new_key] = value return new_dict elif isinstance(data, list):