Remove bogus aggregate alias

This commit is contained in:
lash 2022-04-07 14:45:47 +00:00
parent c667cf351d
commit c43cb44a60
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ from http.server import (
import confini
from jsonrpc_std.parse import jsonrpc_from_str
from jsonrpc_std.interface import jsonrpc_response
from jsonrpc_std.error import JSONRPCException
# local imports
from eth_stat_syncer.store import RunStore
@ -122,7 +123,7 @@ class StatRequestHandler(BaseHTTPRequestHandler):
self.send_response(200, 'alas with jsonrpc error')
else:
r = self.runstore.get('high', 'minute')
r = self.runstore.get('high', 'block')
r = int(r)
if r == 0:
r = 1