Skip to content

Commit 7ed56de

Browse files
Update version to 1.8.10 and enhance boolean parameter handling in http_build_query(). Boolean values are now converted to "Y" for True and "N" for False, improving compatibility with Bitrix24 API expectations.
1 parent b58cb57 commit 7ed56de

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

fast_bitrix24/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.8.9"
1+
__version__ = "1.8.10"

fast_bitrix24/utils.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ def http_build_query(params, convention="%s"):
2929
output += http_build_query(new_params, convention % key + "[%s]")
3030

3131
else:
32-
33-
val = quote(str(params[key]))
32+
# Convert boolean values to Y/N
33+
if isinstance(params[key], bool):
34+
val = quote("Y" if params[key] else "N")
35+
else:
36+
val = quote(str(params[key]))
3437
key = quote(key)
3538
output = output + convention % key + "=" + val + "&"
3639

memory-bank/activeContext.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515

1616
## Recent Changes
1717

18+
### Code Updates
19+
- **Boolean Parameter Handling**: Modified `http_build_query()` in `utils.py` to convert boolean values to "Y"/"N" format
20+
- `True` values now convert to "Y"
21+
- `False` values now convert to "N"
22+
- Improves compatibility with Bitrix24 API boolean parameter expectations
23+
1824
### Documentation Updates
1925
- **Memory Bank Creation**: Established comprehensive project documentation system
2026
- **Architecture Documentation**: Documented async-first design with sync wrapper

0 commit comments

Comments
 (0)