aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrr-2016-08-14 12:30:37 +0200
committerrr-2016-08-14 16:43:04 +0200
commit56b3eb96743c9138edea084279910aa2b3d43c9d (patch)
treeea6a9c2f4dfe41ea07f3e9a8eb4a2124f1aaf7a5
parent86452019a31571e806d695ee2a23c6d8a1d9885b (diff)
server/util: fix case conversion
-rw-r--r--server/szurubooru/func/util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/szurubooru/func/util.py b/server/szurubooru/func/util.py
index bbc3bd2..e0fc3ce 100644
--- a/server/szurubooru/func/util.py
+++ b/server/szurubooru/func/util.py
@@ -8,7 +8,8 @@ from szurubooru import errors
def snake_case_to_lower_camel_case(text):
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):
target = {}

© 2015 - 2026 Jakob L. Kreuze