You are viewing a single comment's thread from:

RE: Hivemind + Ruby

in #steem6 years ago (edited)

Great stuff! :)

Not exactly the same but as a similar and primitive Python alternative, it's possible to use ORM of the django with the tower.

Find the accounts has "Turkey" in their location field and count them:

In [13]: from hive.models import Account

In [14]: Account.objects.filter(location__icontains="Turkey").count()
Out[14]: 1732

Find the fattest block in terms of transaction count:

In [15]: from hive.models import Block

In [16]: Block.objects.order_by('-txs')[0]
Out[16]: <Block: Block object (21690411)>

And, so on :)

Coin Marketplace

STEEM 0.19
TRX 0.18
JST 0.033
BTC 87161.65
ETH 3057.00
USDT 1.00
SBD 2.75