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.26
TRX 0.24
JST 0.038
BTC 95392.30
ETH 3285.89
USDT 1.00
SBD 3.39