Skip to content

Commit

Permalink
Use case-insensitive comparison for boolean value
Browse files Browse the repository at this point in the history
  • Loading branch information
truongvan authored Dec 9, 2023
1 parent d133d1b commit cec0b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dj_database_url/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def parse(
if value.isdigit():
options[key] = int(value)
elif value.lower() in ("true", "false"):
options[key] = value == "true"
options[key] = value.lower() == "true"
else:
options[key] = value

Expand Down

0 comments on commit cec0b29

Please sign in to comment.