Skip to content

Commit

Permalink
fix: add capitalised True False string conversions for bool datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
StuCM committed Jun 18, 2024
1 parent 7295868 commit 289ecf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arches/app/utils/string_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
def str_to_bool(value):
match value:
case "y" | "yes" | "t" | "true" | "on" | "1":
case "y" | "yes" | "t" | "true" | "on" | "1" | "True":
return True
case "n" | "no" | "f" | "false" | "off" | "0":
case "n" | "no" | "f" | "false" | "off" | "0" | "False":
return False
raise ValueError

0 comments on commit 289ecf2

Please sign in to comment.