FIx comments labels

This commit is contained in:
poka 2021-06-30 06:14:16 +02:00
parent 6cb7e36bd6
commit 75e71763f8
1 changed files with 2 additions and 5 deletions

View File

@ -6,8 +6,6 @@ from lib.natools import fmt, sign, get_privkey
from gql import gql, Client from gql import gql, Client
from gql.transport.aiohttp import AIOHTTPTransport from gql.transport.aiohttp import AIOHTTPTransport
PUBKEY_REGEX = "(?![OIl])[1-9A-Za-z]{42,45}"
class currentUd: class currentUd:
def __init__(self, node): def __init__(self, node):
@ -16,7 +14,7 @@ class currentUd:
self.client = Client(transport=transport, fetch_schema_from_transport=True) self.client = Client(transport=transport, fetch_schema_from_transport=True)
def sendDoc(self): def sendDoc(self):
# Build balance generation document # Build UD generation document
queryBuild = gql( queryBuild = gql(
""" """
query { query {
@ -29,7 +27,7 @@ class currentUd:
paramsBuild = { paramsBuild = {
} }
# Send balance document # Send UD document
try: try:
udValue = self.client.execute(queryBuild, variable_values=paramsBuild) udValue = self.client.execute(queryBuild, variable_values=paramsBuild)
except Exception as e: except Exception as e:
@ -39,5 +37,4 @@ class currentUd:
udValueFinal = udValue['currentUd']['amount'] udValueFinal = udValue['currentUd']['amount']
# print(balanceValue)
return udValueFinal return udValueFinal