We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcbd014 commit ddc8f29Copy full SHA for ddc8f29
src/aleph/sdk/client/services/voucher.py
@@ -33,15 +33,11 @@ async def _fetch_voucher_update(self):
33
vouchers_post: PostsResponse = await self._client.get_posts(
34
post_filter=post_filter, page_size=1
35
)
36
- print(vouchers_post.model_dump_json())
37
38
if not vouchers_post.posts:
39
return []
40
41
- message_post: Post = vouchers_post.posts[
42
- 0
43
- ] # Not sure about that need to re c heck
44
- print(message_post.model_dump_json())
+ message_post: Post = vouchers_post.posts[0]
45
46
nft_vouchers = message_post.content.get("nft_vouchers", {})
47
return list(nft_vouchers.items()) # [(voucher_id, voucher_data)]
0 commit comments