Skip to content

Commit

Permalink
Merge pull request #11 from flaxandteal/fix/bool-widget-save-error
Browse files Browse the repository at this point in the history
Fix: Bool datatype save error - string conversion
  • Loading branch information
taylorn01 authored Jun 18, 2024
2 parents 7295868 + 289ecf2 commit f8671a0
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 f8671a0

Please sign in to comment.