Skip to content

Commit

Permalink
Defensive programming for partitioned.
Browse files Browse the repository at this point in the history
  • Loading branch information
pekrau committed Nov 3, 2021
1 parent 099a4ca commit 8a53b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion couchdb2.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def create(self, n=3, q=8, partitioned=False):
- `q`: The number of shards.
- `partitioned`: Whether to create a partitioned database.
"""
params = {"n": n, "q": q, "partitioned": str(partitioned).lower()}
params = {"n": n, "q": q, "partitioned": str(bool(partitioned)).lower()}
self.server._PUT(self.name, params=params)
return self

Expand Down

0 comments on commit 8a53b71

Please sign in to comment.