We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f76fce commit b6d5d36Copy full SHA for b6d5d36
openlibrary/plugins/openlibrary/api.py
@@ -659,7 +659,8 @@ def POST(self, work_id: str):
659
660
web_input = web.input(comment=None, bulk=False)
661
comment = web_input.get('comment')
662
- bulk = web_input.bulk
+ # Convert bulk parameter to boolean (handles both 'true'/'True' strings and boolean values)
663
+ bulk = str(web_input.bulk).lower() in ('true', '1', 'yes')
664
665
user = accounts.get_current_user()
666
0 commit comments