server/util: fix case conversion
This commit is contained in:
parent
86452019a3
commit
56b3eb9674
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,8 @@ from szurubooru import errors
|
||||||
|
|
||||||
def snake_case_to_lower_camel_case(text):
|
def snake_case_to_lower_camel_case(text):
|
||||||
components = text.split('_')
|
components = text.split('_')
|
||||||
return components[0] + ''.join(word[0].upper() + word[1:] for word in components[1:])
|
return components[0].lower() + \
|
||||||
|
''.join(word[0].upper() + word[1:].lower() for word in components[1:])
|
||||||
|
|
||||||
def snake_case_to_lower_camel_case_keys(source):
|
def snake_case_to_lower_camel_case_keys(source):
|
||||||
target = {}
|
target = {}
|
||||||
|
|
Loading…
Reference in a new issue