Esempio n. 1
0
def query_address_tags(currency, address):
    set_keyspace(session, currency)
    tags = session.execute(address_tags_query[currency], [address])
    return [gm.Tag(row).__dict__ for row in tags]
Esempio n. 2
0
def query_cluster_tags(currency, cluster):
    set_keyspace(session, currency)
    tags = session.execute(cluster_tags_query[currency], [int(cluster)])
    clustertags = [gm.Tag(tagrow).__dict__ for (tagrow) in tags]
    return clustertags
 def makeTagWithCurrency(row):
     d = gm.Tag(row).__dict__
     d["currency"] = row.currency
     return d