Skip to content

Commit

Permalink
[samp local] fix broken lambda context in Python
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Aug 9, 2023
1 parent 8f86554 commit f892b68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/local/runtime-support/python/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f892b68

Please sign in to comment.