fix python bindings for block_uploaded_alert

This commit is contained in:
Joris Carrier 2019-04-18 08:47:04 +02:00 committed by Arvid Norberg
parent 8506f93507
commit 2ccb5d716a
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
* fix python bindins for block_uploaded_alert
* optimize resolving duplicate filenames in loading torrent files
* fix python binding of dht_settings
* tighten up various input validation checks

View File

@ -989,7 +989,7 @@ void bind_alert()
class_<block_uploaded_alert, bases<peer_alert>, noncopyable>(
"block_uploaded_alert", no_init)
.add_property("block_index", &block_uploaded_alert::block_index)
.add_property("piece_index", &block_uploaded_alert::piece_index)
.add_property("piece_index", make_getter((&block_uploaded_alert::piece_index), by_value()))
;
}