|
|
|
@ -12,7 +12,7 @@ if not wallet.connected:
|
|
|
|
|
print('Wallet not connected')
|
|
|
|
|
exit()
|
|
|
|
|
|
|
|
|
|
all_posts = Post.select()
|
|
|
|
|
all_posts = Post.select().order_by(Post.timestamp.desc())
|
|
|
|
|
all_mods = Moderator.select()
|
|
|
|
|
all_profiles = Profile.select()
|
|
|
|
|
all_bans = Ban.select()
|
|
|
|
@ -27,7 +27,7 @@ all_data = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for post in all_posts:
|
|
|
|
|
all_data['posts'].append({
|
|
|
|
|
post_data = {
|
|
|
|
|
'id': post.id,
|
|
|
|
|
'title': post.title,
|
|
|
|
|
'text': post.text,
|
|
|
|
@ -43,7 +43,9 @@ for post in all_posts:
|
|
|
|
|
'to_discord': post.to_discord,
|
|
|
|
|
'approved': post.approved,
|
|
|
|
|
'txes': wallet.transfers(post.account_index)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
all_data['posts'].append(post_data)
|
|
|
|
|
print(post_data['txes'])
|
|
|
|
|
|
|
|
|
|
for mod in all_mods:
|
|
|
|
|
all_data['moderators'].append(mod.username)
|
|
|
|
|