Skip to content

Commit

Permalink
remove .lower() on format, wiki update (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
anitejb authored Oct 31, 2020
1 parent f2ca57c commit e828920
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/flaskapp/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ def format_string(input_):
a formatted list is returned if a list is provided
"""
if isinstance(input_, str):
return input_.strip().lower()
return input_.strip()
if isinstance(input_, list):
res = []
for element in input_:
if isinstance(element, str):
res.append(element.strip().lower())
res.append(element.strip())
else:
# NOTE when the element is not of string typ (we can handle this case different if necessary)
res.append(element)
Expand Down
2 changes: 1 addition & 1 deletion teamRU.wiki

0 comments on commit e828920

Please sign in to comment.