You are viewing a single comment's thread from:

RE: Hivemind + Ruby

in #steem5 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 :)