fix python binding for peer_info::connection_type

This commit is contained in:
arvidn
2022-02-27 14:33:03 +01:00
committed by Arvid Norberg
parent a32055d149
commit ebc246760b

View File

@ -94,7 +94,7 @@ void bind_peer_info()
.def_readonly("downloading_progress", &peer_info::downloading_progress)
.def_readonly("downloading_total", &peer_info::downloading_total)
.add_property("client", get_peer_info_client)
.def_readonly("connection_type", &peer_info::connection_type)
.add_property("connection_type", make_getter(&peer_info::connection_type, by_value()))
.def_readonly("pending_disk_bytes", &peer_info::pending_disk_bytes)
.def_readonly("send_quota", &peer_info::send_quota)
.def_readonly("receive_quota", &peer_info::receive_quota)