Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: check bool before int in _python_value_to_proto
bool is a subclass of int in Python, so isinstance(True, int) returns
True. Move the bool check before int so boolean values are correctly
converted to ValueProto(bool_val=...) instead of ValueProto(int64_val=...).

Signed-off-by: Casey Clements <casey.clements@mongodb.com>
  • Loading branch information
caseyclements committed Apr 30, 2026
commit c0ab443272f7f40b9fa9f9a5ef4092366f7f3278
Original file line number Diff line number Diff line change
Expand Up @@ -766,12 +766,12 @@ def _python_value_to_proto(value: Any) -> ValueProto:
"""Best-effort conversion of a single Python value to ValueProto."""
if isinstance(value, float):
return ValueProto(float_val=value)
elif isinstance(value, bool):
return ValueProto(bool_val=value)
elif isinstance(value, int):
return ValueProto(int64_val=value)
elif isinstance(value, str):
return ValueProto(string_val=value)
elif isinstance(value, bool):
return ValueProto(bool_val=value)
elif isinstance(value, bytes):
return ValueProto(bytes_val=value)
elif isinstance(value, list) and all(isinstance(v, float) for v in value):
Expand Down