From 5cf0f7ff9a1db48b196034f0dd75b68a3e803aa7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 9 Jun 2022 17:06:12 +0100 Subject: [PATCH] Snake case --- blocking.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocking.py b/blocking.py index b4668fa8d..8271710b9 100644 --- a/blocking.py +++ b/blocking.py @@ -1116,7 +1116,7 @@ def add_cw_from_lists(post_json_object: {}, cw_lists: {}, translate: {}, post_json_object['object']['sensitive'] = True -def get_cw_list_variable(listName: str) -> str: +def get_cw_list_variable(list_name: str) -> str: """Returns the variable associated with a CW list """ - return 'list' + listName.replace(' ', '').replace("'", '') + return 'list' + list_name.replace(' ', '').replace("'", '')