Skip to content
Snippets Groups Projects
Commit fc6e884b authored by Adrien Béraud's avatar Adrien Béraud
Browse files

python: adapt to new owner api

parent 9d7f6d28
No related branches found
No related tags found
No related merge requests found
...@@ -139,7 +139,7 @@ cdef class Value(object): ...@@ -139,7 +139,7 @@ cdef class Value(object):
property owner: property owner:
def __get__(self): def __get__(self):
h = InfoHash() h = InfoHash()
h._infohash = self._value.get().owner.getId() h._infohash = self._value.get().owner.get().getId()
return h return h
property recipient: property recipient:
def __get__(self): def __get__(self):
......
...@@ -86,7 +86,7 @@ cdef extern from "opendht/value.h" namespace "dht": ...@@ -86,7 +86,7 @@ cdef extern from "opendht/value.h" namespace "dht":
Value(const uint8_t* dat_ptr, size_t dat_len) except + Value(const uint8_t* dat_ptr, size_t dat_len) except +
string toString() const string toString() const
uint64_t id uint64_t id
PublicKey owner shared_ptr[PublicKey] owner
InfoHash recipient InfoHash recipient
vector[uint8_t] data vector[uint8_t] data
string user_type string user_type
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment